Make WordPress Core

Changeset 58374

Timestamp:
06/10/2024 04:45:39 PM (2 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [3724], [5575], [15642], [17202].

Props aristath, poena, afercia, SergeyBiryukov.
See #60700.

File:
1 edited

Legend:

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

    r57648 r58374  
    636636        }
    637637
    638         if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
     638        if ( isset( $_REQUEST['action'] ) && = $_REQUEST['action'] ) {
    639639            return $_REQUEST['action'];
    640640        }
     
    754754        $month_count = count( $months );
    755755
    756         if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) {
     756        if ( ! $month_count || ( 1 == $months[0]->month ) ) {
    757757            return;
    758758        }
     
    765765        <?php
    766766        foreach ( $months as $arc_row ) {
    767             if ( 0 == $arc_row->year ) {
     767            if ( 0 == $arc_row->year ) {
    768768                continue;
    769769            }
     
    10541054        $disable_next  = false;
    10551055
    1056         if ( 1 == $current ) {
     1056        if ( 1 == $current ) {
    10571057            $disable_first = true;
    10581058            $disable_prev  = true;
    10591059        }
    1060         if ( $total_pages == $current ) {
     1060        if ( $total_pages == $current ) {
    10611061            $disable_last = true;
    10621062            $disable_next = true;
Note: See TracChangeset for help on using the changeset viewer.