@@ 18-20 (lines=3) @@ | ||
15 | ||
16 | // convert list of modules in comma-delimited format into an array |
|
17 | // of "$modulename => true" |
|
18 | if ( isset( $args['modules'] ) && ! empty( $args['modules'] ) ) { |
|
19 | $modules = array_map( '__return_true', array_flip( array_map( 'trim', explode( ',', $args['modules'] ) ) ) ); |
|
20 | } |
|
21 | ||
22 | foreach ( array( 'posts', 'comments', 'users' ) as $module_name ) { |
|
23 | if ( 'users' === $module_name && isset( $args[ $module_name ] ) && 'initial' === $args[ $module_name ] ) { |
@@ 2276-2278 (lines=3) @@ | ||
2273 | if ( ! empty( $attributes['options'] ) && is_string( $attributes['options'] ) ) { |
|
2274 | $attributes['options'] = array_map( 'trim', explode( ',', $attributes['options'] ) ); |
|
2275 | ||
2276 | if ( ! empty( $attributes['values'] ) && is_string( $attributes['values'] ) ) { |
|
2277 | $attributes['values'] = array_map( 'trim', explode( ',', $attributes['values'] ) ); |
|
2278 | } |
|
2279 | } |
|
2280 | ||
2281 | if ( $form ) { |