Completed
Push — master ( dba3d2...adbece )
by Leon
03:29
created
includes/class-meta-box.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 				$plugins = $wp_list_table->items;
95 95
 				foreach ( array_keys( $plugins ) as $key ) {
96 96
 					if ( in_array( $key, $to_hide, true ) ) {
97
-						unset( $wp_list_table->items[ $key ] );
97
+						unset( $wp_list_table->items[$key] );
98 98
 					}
99 99
 				}
100 100
 			}
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 		 */
190 190
 		static function atfo( $field, $field_type, $field_key ) {
191 191
 
192
-			return ( in_array( $field['_cmb2_field_type_select'], $field_type, true ) && ( ! empty( $field[ $field_key ] ) && $field[ $field_key] !== '' ) );
192
+			return ( in_array( $field['_cmb2_field_type_select'], $field_type, true ) && ( ! empty( $field[$field_key] ) && $field[$field_key] !== '' ) );
193 193
 		}
194 194
 
195 195
 		/**
@@ -257,11 +257,11 @@  discard block
 block discarded – undo
257 257
 							if ( ! isset( $opt_arr[1] ) ) {
258 258
 								continue;
259 259
 							}
260
-							$field_options[ $opt_arr[0] ] = $opt_arr[1];
260
+							$field_options[$opt_arr[0]] = $opt_arr[1];
261 261
 						}
262 262
 						$field_args['options'] = $field_options;
263 263
 					}
264
-					if ( strpos( $field['_cmb2_field_type_select'], 'tax' ) !== false  && $field['_cmb2_tax_options_radio_inline'] !== '' ) {
264
+					if ( strpos( $field['_cmb2_field_type_select'], 'tax' ) !== false && $field['_cmb2_tax_options_radio_inline'] !== '' ) {
265 265
 						$field_args['taxonomy'] = $field['_cmb2_tax_options_radio_inline'];
266 266
 					}
267 267
 					if ( strpos( $field['_cmb2_field_type_select'], 'tax' ) !== false && isset( $field['_cmb2_no_terms_text'] ) && $field['_cmb2_no_terms_text'] !== '' ) {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 					if ( isset( $field['_cmb2_none_checkbox'] ) && $field['_cmb2_none_checkbox'] === 'on' && $this->has_options( $field['_cmb2_field_type_select'] ) ) {
289 289
 						$field_args['show_option_none'] = true;
290 290
 					}
291
-					if ( strpos( $field['_cmb2_field_type_select'], 'multicheck' ) !== false  && isset( $field['_cmb2_select_all_checkbox'] ) && $field['_cmb2_select_all_checkbox'] === 'on' ) {
291
+					if ( strpos( $field['_cmb2_field_type_select'], 'multicheck' ) !== false && isset( $field['_cmb2_select_all_checkbox'] ) && $field['_cmb2_select_all_checkbox'] === 'on' ) {
292 292
 						$field_args['select_all_button'] = false;
293 293
 					}
294 294
 					if ( $this->atfo( $field, array( 'file' ), '_cmb2_add_upload_file_text' ) ) {
Please login to merge, or discard this patch.