| @@ 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; |
|
| @@ 113-117 (lines=5) @@ | ||
| 110 | ||
| 111 | $args = $this->query_args(); |
|
| 112 | ||
| 113 | if ( isset( $args['columns'] ) ) { |
|
| 114 | $columns = array_map('trim', explode( ',', $args['columns'] ) ); |
|
| 115 | } else { |
|
| 116 | $columns = null; // go with defaults |
|
| 117 | } |
|
| 118 | ||
| 119 | require_once dirname(__FILE__) . '/../../sync/class.jetpack-sync-wp-replicastore.php'; |
|
| 120 | ||