projects/plugins/jetpack/class.jetpack-cli.php 1 location
|
@@ 940-946 (lines=7) @@
|
| 937 |
|
Settings::update_settings( $sync_settings ); |
| 938 |
|
|
| 939 |
|
// Convert comma-delimited string of modules to an array |
| 940 |
|
if ( ! empty( $assoc_args['modules'] ) ) { |
| 941 |
|
$modules = array_map( 'trim', explode( ',', $assoc_args['modules'] ) ); |
| 942 |
|
|
| 943 |
|
// Convert the array so that the keys are the module name and the value is true to indicate |
| 944 |
|
// that we want to sync the module |
| 945 |
|
$modules = array_map( '__return_true', array_flip( $modules ) ); |
| 946 |
|
} |
| 947 |
|
|
| 948 |
|
foreach ( array( 'posts', 'comments', 'users' ) as $module_name ) { |
| 949 |
|
if ( |
projects/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php 1 location
|
@@ 32-34 (lines=3) @@
|
| 29 |
|
|
| 30 |
|
// convert list of modules in comma-delimited format into an array |
| 31 |
|
// of "$modulename => true" |
| 32 |
|
if ( isset( $args['modules'] ) && ! empty( $args['modules'] ) ) { |
| 33 |
|
$modules = array_map( '__return_true', array_flip( array_map( 'trim', explode( ',', $args['modules'] ) ) ) ); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
foreach ( array( 'posts', 'comments', 'users' ) as $module_name ) { |
| 37 |
|
if ( 'users' === $module_name && isset( $args[ $module_name ] ) && 'initial' === $args[ $module_name ] ) { |
projects/plugins/jetpack/modules/contact-form/grunion-contact-form.php 1 location
|
@@ 3327-3329 (lines=3) @@
|
| 3324 |
|
if ( ! empty( $attributes['options'] ) && is_string( $attributes['options'] ) ) { |
| 3325 |
|
$attributes['options'] = array_map( 'trim', explode( ',', $attributes['options'] ) ); |
| 3326 |
|
|
| 3327 |
|
if ( ! empty( $attributes['values'] ) && is_string( $attributes['values'] ) ) { |
| 3328 |
|
$attributes['values'] = array_map( 'trim', explode( ',', $attributes['values'] ) ); |
| 3329 |
|
} |
| 3330 |
|
} |
| 3331 |
|
|
| 3332 |
|
if ( $form ) { |