@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $plugins = $wp_list_table->items; |
97 | 97 | foreach ( $plugins as $key => $val ) { |
98 | 98 | if ( in_array( $key, $to_hide, true ) ) { |
99 | - unset( $wp_list_table->items[ $key ] ); |
|
99 | + unset( $wp_list_table->items[$key] ); |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 | } |
@@ -276,11 +276,11 @@ discard block |
||
276 | 276 | if ( ! isset( $opt_arr[1] ) ) { |
277 | 277 | continue; |
278 | 278 | } |
279 | - $field_options[ $opt_arr[0] ] = $opt_arr[1]; |
|
279 | + $field_options[$opt_arr[0]] = $opt_arr[1]; |
|
280 | 280 | } |
281 | 281 | $field_args['options'] = $field_options; |
282 | 282 | } |
283 | - if ( strpos( $field['_cmb2_field_type_select'], 'tax' ) !== false && $field['_cmb2_tax_options_radio_inline'] !== '' ) { |
|
283 | + if ( strpos( $field['_cmb2_field_type_select'], 'tax' ) !== false && $field['_cmb2_tax_options_radio_inline'] !== '' ) { |
|
284 | 284 | $field_args['taxonomy'] = $field['_cmb2_tax_options_radio_inline']; |
285 | 285 | } |
286 | 286 | if ( strpos( $field['_cmb2_field_type_select'], 'tax' ) !== false && isset( $field['_cmb2_no_terms_text'] ) && $field['_cmb2_no_terms_text'] !== '' ) { |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | if ( isset( $field['_cmb2_none_checkbox'] ) && $field['_cmb2_none_checkbox'] === 'on' && $this->has_options( $field['_cmb2_field_type_select'] ) ) { |
308 | 308 | $field_args['show_option_none'] = true; |
309 | 309 | } |
310 | - if ( strpos( $field['_cmb2_field_type_select'], 'multicheck' ) !== false && isset( $field['_cmb2_select_all_checkbox'] ) && $field['_cmb2_select_all_checkbox'] === 'on' ) { |
|
310 | + if ( strpos( $field['_cmb2_field_type_select'], 'multicheck' ) !== false && isset( $field['_cmb2_select_all_checkbox'] ) && $field['_cmb2_select_all_checkbox'] === 'on' ) { |
|
311 | 311 | $field_args['select_all_button'] = false; |
312 | 312 | } |
313 | 313 | if ( $this->afo( $field, array( 'file' ), '_cmb2_add_upload_file_text' ) ) { |
@@ -113,7 +113,7 @@ |
||
113 | 113 | foreach ( $users as $user ) { |
114 | 114 | |
115 | 115 | if ( user_can( $user, 'update_plugins' ) || user_can( $user, 'install_plugins' ) || user_can( $user, 'delete_plugins' ) || user_can( $user, 'edit_theme_options' ) ) { |
116 | - $user_options[ $user->ID ] = $user->display_name; |
|
116 | + $user_options[$user->ID] = $user->display_name; |
|
117 | 117 | } |
118 | 118 | } |
119 | 119 |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | $tax_options = array(); |
226 | 226 | foreach ( $taxonomies as $taxonomy ) { |
227 | 227 | |
228 | - $tax_options[ $taxonomy->name ] = $taxonomy->labels->name; |
|
228 | + $tax_options[$taxonomy->name] = $taxonomy->labels->name; |
|
229 | 229 | |
230 | 230 | } |
231 | 231 | return $tax_options; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | |
247 | 247 | foreach ( $post_type_objects as $post_type_object ) { |
248 | 248 | if ( $post_type_object->show_ui && $post_type_object->name !== 'meta_box' ) { |
249 | - $post_types[ $post_type_object->name ] = $post_type_object->label; |
|
249 | + $post_types[$post_type_object->name] = $post_type_object->label; |
|
250 | 250 | } |
251 | 251 | } |
252 | 252 |