@@ 126-130 (lines=5) @@ | ||
123 | ||
124 | $args = $this->query_args(); |
|
125 | ||
126 | if ( isset( $args['columns'] ) ) { |
|
127 | $columns = array_map( 'trim', explode( ',', $args['columns'] ) ); |
|
128 | } else { |
|
129 | $columns = null; // go with defaults |
|
130 | } |
|
131 | ||
132 | require_once dirname( __FILE__ ) . '/../../sync/class.jetpack-sync-wp-replicastore.php'; |
|
133 |
@@ 2215-2217 (lines=3) @@ | ||
2212 | $attributes['required'] = false; |
|
2213 | ||
2214 | // parse out comma-separated options list (for selects, radios, and checkbox-multiples) |
|
2215 | if ( !empty( $attributes['options'] ) && is_string( $attributes['options'] ) ) { |
|
2216 | $attributes['options'] = array_map( 'trim', explode( ',', $attributes['options'] ) ); |
|
2217 | } |
|
2218 | ||
2219 | if ( $form ) { |
|
2220 | // make a unique field ID based on the label, with an incrementing number if needed to avoid clashes |