Changeset 50832
- Timestamp:
- 05/09/2021 08:25:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/screen.php
r48574 r50832 16 16 */ 17 17 function get_column_headers( $screen ) { 18 if ( is_string( $screen ) ) {19 $screen = convert_to_screen( $screen );20 }21 22 18 static $column_headers = array(); 19 20 if ( is_string( $screen ) ) { 21 $screen = convert_to_screen( $screen ); 22 } 23 23 24 24 if ( ! isset( $column_headers[ $screen->id ] ) ) { … … 112 112 continue; 113 113 } 114 114 115 foreach ( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] as $box ) { 115 if ( false == $box || ! $box['title'] ) {116 if ( false === $box || ! $box['title'] ) { 116 117 continue; 117 118 } 119 118 120 // Submit box cannot be hidden. 119 121 if ( 'submitdiv' === $box['id'] || 'linksubmitdiv' === $box['id'] ) { … … 160 162 if ( $use_defaults ) { 161 163 $hidden = array(); 164 162 165 if ( 'post' === $screen->base ) { 163 166 if ( in_array( $screen->post_type, array( 'post', 'page', 'attachment' ), true ) ) {
Note: See TracChangeset
for help on using the changeset viewer.