Make WordPress Core


Ignore:
Timestamp:
05/03/2021 01:55:08 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/includes/class-wp-posts-list-table.php.

Includes minor code layout fixes for better readability.

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r50770 r50804  
    172172    protected function get_bulk_actions() {
    173173        $actions = array();
     174
    174175        if ( MEDIA_TRASH ) {
    175176            if ( $this->is_trash ) {
     
    209210            submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    210211
    211             if ( $this->is_trash && current_user_can( 'edit_others_posts' ) && $this->has_items() ) {
     212            if ( $this->is_trash && $this->has_items()
     213                && current_user_can( 'edit_others_posts' )
     214            ) {
    212215                submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
    213216            }
     
    337340                $column_key = 'taxonomy-' . $taxonomy;
    338341            }
     342
    339343            $posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name;
    340344        }
     
    347351            }
    348352        }
     353
    349354        /* translators: Column name. */
    350355        $posts_columns['date'] = _x( 'Date', 'column name' );
     356
    351357        /**
    352358         * Filters the Media list table columns.
     
    425431            <?php
    426432            echo $link_start;
     433
    427434            if ( $thumb ) :
    428435                ?>
     
    430437                <?php
    431438            endif;
     439
    432440            echo $title . $link_end;
     441
    433442            _media_states( $post );
    434443            ?>
     
    599608        if ( $taxonomy ) {
    600609            $terms = get_the_terms( $post->ID, $taxonomy );
     610
    601611            if ( is_array( $terms ) ) {
    602612                $out = array();
Note: See TracChangeset for help on using the changeset viewer.