| @@ 2435-2437 (lines=3) @@ | ||
| 2432 | 		if ( ! empty( $attributes['options'] ) && is_string( $attributes['options'] ) ) { | |
| 2433 | $attributes['options'] = array_map( 'trim', explode( ',', $attributes['options'] ) ); | |
| 2434 | ||
| 2435 | 			if ( ! empty( $attributes['values'] ) && is_string( $attributes['values'] ) ) { | |
| 2436 | $attributes['values'] = array_map( 'trim', explode( ',', $attributes['values'] ) ); | |
| 2437 | } | |
| 2438 | } | |
| 2439 | ||
| 2440 | 		if ( $form ) { | |
| @@ 684-690 (lines=7) @@ | ||
| 681 | Jetpack_Sync_Settings::update_settings( $sync_settings ); | |
| 682 | ||
| 683 | // Convert comma-delimited string of modules to an array | |
| 684 | 				if ( ! empty( $assoc_args['modules'] ) ) { | |
| 685 | $modules = array_map( 'trim', explode( ',', $assoc_args['modules'] ) ); | |
| 686 | ||
| 687 | // Convert the array so that the keys are the module name and the value is true to indicate | |
| 688 | // that we want to sync the module | |
| 689 | $modules = array_map( '__return_true', array_flip( $modules ) ); | |
| 690 | } | |
| 691 | ||
| 692 | 				foreach ( array( 'posts', 'comments', 'users' ) as $module_name ) { | |
| 693 | if ( | |