| @@ 2191-2193 (lines=3) @@ | ||
| 2188 | $attributes['required'] = false; | |
| 2189 | ||
| 2190 | // parse out comma-separated options list (for selects, radios, and checkbox-multiples) | |
| 2191 | 		if ( !empty( $attributes['options'] ) && is_string( $attributes['options'] ) ) { | |
| 2192 | $attributes['options'] = array_map( 'trim', explode( ',', $attributes['options'] ) ); | |
| 2193 | } | |
| 2194 | ||
| 2195 | 		if ( $form ) { | |
| 2196 | // make a unique field ID based on the label, with an incrementing number if needed to avoid clashes | |
| @@ 12-14 (lines=3) @@ | ||
| 9 | ||
| 10 | $modules = null; | |
| 11 | ||
| 12 | 		if ( isset( $args['modules'] ) && !empty( $args['modules'] ) ) { | |
| 13 | 			$modules = array_map('trim', explode( ',', $args['modules'] ) ); | |
| 14 | } | |
| 15 | ||
| 16 | 		if ( empty( $modules ) ) { | |
| 17 | $modules = null; | |
| @@ 109-113 (lines=5) @@ | ||
| 106 | ||
| 107 | $args = $this->query_args(); | |
| 108 | ||
| 109 | 		if ( isset( $args['columns'] ) ) { | |
| 110 | 			$columns = array_map('trim', explode( ',', $args['columns'] ) ); | |
| 111 | 		} else { | |
| 112 | $columns = null; // go with defaults | |
| 113 | } | |
| 114 | ||
| 115 | require_once dirname(__FILE__) . '/../../sync/class.jetpack-sync-wp-replicastore.php'; | |
| 116 | ||