Make WordPress Core

Changeset 50832


Ignore:
Timestamp:
05/09/2021 08:25:41 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/includes/screen.php.

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/screen.php

    r48574 r50832  
    1616 */
    1717function get_column_headers( $screen ) {
    18     if ( is_string( $screen ) ) {
    19         $screen = convert_to_screen( $screen );
    20     }
    21 
    2218    static $column_headers = array();
     19
     20    if ( is_string( $screen ) ) {
     21        $screen = convert_to_screen( $screen );
     22    }
    2323
    2424    if ( ! isset( $column_headers[ $screen->id ] ) ) {
     
    112112                continue;
    113113            }
     114
    114115            foreach ( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] as $box ) {
    115                 if ( false == $box || ! $box['title'] ) {
     116                if ( false === $box || ! $box['title'] ) {
    116117                    continue;
    117118                }
     119
    118120                // Submit box cannot be hidden.
    119121                if ( 'submitdiv' === $box['id'] || 'linksubmitdiv' === $box['id'] ) {
     
    160162    if ( $use_defaults ) {
    161163        $hidden = array();
     164
    162165        if ( 'post' === $screen->base ) {
    163166            if ( in_array( $screen->post_type, array( 'post', 'page', 'attachment' ), true ) ) {
Note: See TracChangeset for help on using the changeset viewer.