@@ 25-27 (lines=3) @@ | ||
22 | ||
23 | // convert list of modules in comma-delimited format into an array |
|
24 | // of "$modulename => true" |
|
25 | if ( isset( $args['modules'] ) && ! empty( $args['modules'] ) ) { |
|
26 | $modules = array_map( '__return_true', array_flip( array_map( 'trim', explode( ',', $args['modules'] ) ) ) ); |
|
27 | } |
|
28 | ||
29 | foreach ( array( 'posts', 'comments', 'users' ) as $module_name ) { |
|
30 | if ( 'users' === $module_name && isset( $args[ $module_name ] ) && 'initial' === $args[ $module_name ] ) { |
@@ 3066-3068 (lines=3) @@ | ||
3063 | if ( ! empty( $attributes['options'] ) && is_string( $attributes['options'] ) ) { |
|
3064 | $attributes['options'] = array_map( 'trim', explode( ',', $attributes['options'] ) ); |
|
3065 | ||
3066 | if ( ! empty( $attributes['values'] ) && is_string( $attributes['values'] ) ) { |
|
3067 | $attributes['values'] = array_map( 'trim', explode( ',', $attributes['values'] ) ); |
|
3068 | } |
|
3069 | } |
|
3070 | ||
3071 | if ( $form ) { |