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.
Built from https://develop.svn.wordpress.org/trunk@58374


git-svn-id: http://core.svn.wordpress.org/trunk@57823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-06-10 16:47:18 +00:00
parent 2aadbaa814
commit 139c2aaf45
2 changed files with 6 additions and 6 deletions

View File

@ -635,7 +635,7 @@ class WP_List_Table {
return false; return false;
} }
if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) { if ( isset( $_REQUEST['action'] ) && '-1' !== $_REQUEST['action'] ) {
return $_REQUEST['action']; return $_REQUEST['action'];
} }
@ -753,7 +753,7 @@ class WP_List_Table {
$month_count = count( $months ); $month_count = count( $months );
if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) { if ( ! $month_count || ( 1 === $month_count && 0 === (int) $months[0]->month ) ) {
return; return;
} }
@ -764,7 +764,7 @@ class WP_List_Table {
<option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option> <option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
<?php <?php
foreach ( $months as $arc_row ) { foreach ( $months as $arc_row ) {
if ( 0 == $arc_row->year ) { if ( 0 === (int) $arc_row->year ) {
continue; continue;
} }
@ -1053,11 +1053,11 @@ class WP_List_Table {
$disable_prev = false; $disable_prev = false;
$disable_next = false; $disable_next = false;
if ( 1 == $current ) { if ( 1 === $current ) {
$disable_first = true; $disable_first = true;
$disable_prev = true; $disable_prev = true;
} }
if ( $total_pages == $current ) { if ( $total_pages === $current ) {
$disable_last = true; $disable_last = true;
$disable_next = true; $disable_next = true;
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.6-beta1-58373'; $wp_version = '6.6-beta1-58374';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.