From 139c2aaf457d09e7cb9aee6c051dbbaf1dd55dfa Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 10 Jun 2024 16:47:18 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-list-table.php | 10 +++++----- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 4e6aaa4854..e05dd77b0a 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -635,7 +635,7 @@ class WP_List_Table { return false; } - if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) { + if ( isset( $_REQUEST['action'] ) && '-1' !== $_REQUEST['action'] ) { return $_REQUEST['action']; } @@ -753,7 +753,7 @@ class WP_List_Table { $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; } @@ -764,7 +764,7 @@ class WP_List_Table { value="0"> year ) { + if ( 0 === (int) $arc_row->year ) { continue; } @@ -1053,11 +1053,11 @@ class WP_List_Table { $disable_prev = false; $disable_next = false; - if ( 1 == $current ) { + if ( 1 === $current ) { $disable_first = true; $disable_prev = true; } - if ( $total_pages == $current ) { + if ( $total_pages === $current ) { $disable_last = true; $disable_next = true; } diff --git a/wp-includes/version.php b/wp-includes/version.php index dfd65a6869..892620361e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.