projects/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php 1 location
|
@@ 33-35 (lines=3) @@
|
30 |
|
|
31 |
|
// convert list of modules in comma-delimited format into an array |
32 |
|
// of "$modulename => true" |
33 |
|
if ( isset( $args['modules'] ) && ! empty( $args['modules'] ) ) { |
34 |
|
$modules = array_map( '__return_true', array_flip( array_map( 'trim', explode( ',', $args['modules'] ) ) ) ); |
35 |
|
} |
36 |
|
|
37 |
|
foreach ( array( 'posts', 'comments', 'users' ) as $module_name ) { |
38 |
|
if ( 'users' === $module_name && isset( $args[ $module_name ] ) && 'initial' === $args[ $module_name ] ) { |
projects/plugins/jetpack/modules/contact-form/grunion-contact-form.php 1 location
|
@@ 3330-3332 (lines=3) @@
|
3327 |
|
if ( ! empty( $attributes['options'] ) && is_string( $attributes['options'] ) ) { |
3328 |
|
$attributes['options'] = array_map( 'trim', explode( ',', $attributes['options'] ) ); |
3329 |
|
|
3330 |
|
if ( ! empty( $attributes['values'] ) && is_string( $attributes['values'] ) ) { |
3331 |
|
$attributes['values'] = array_map( 'trim', explode( ',', $attributes['values'] ) ); |
3332 |
|
} |
3333 |
|
} |
3334 |
|
|
3335 |
|
if ( $form ) { |
projects/plugins/jetpack/class.jetpack-cli.php 1 location
|
@@ 954-960 (lines=7) @@
|
951 |
|
Settings::update_settings( $sync_settings ); |
952 |
|
|
953 |
|
// Convert comma-delimited string of modules to an array |
954 |
|
if ( ! empty( $assoc_args['modules'] ) ) { |
955 |
|
$modules = array_map( 'trim', explode( ',', $assoc_args['modules'] ) ); |
956 |
|
|
957 |
|
// Convert the array so that the keys are the module name and the value is true to indicate |
958 |
|
// that we want to sync the module |
959 |
|
$modules = array_map( '__return_true', array_flip( $modules ) ); |
960 |
|
} |
961 |
|
|
962 |
|
foreach ( array( 'posts', 'comments', 'users' ) as $module_name ) { |
963 |
|
if ( |