From 6e8f550770ca5f95e74871c7da601941f892e613 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 26 Sep 2019 01:24:56 +0000 Subject: [PATCH] General: Correct strict comparison in `WP_Links_List_Table::column_categories()` introduced in [46313]. `$cat_id` is a string, `$category` is an integer. See #48142. Built from https://develop.svn.wordpress.org/trunk@46316 git-svn-id: http://core.svn.wordpress.org/trunk@46115 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-links-list-table.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-links-list-table.php b/wp-admin/includes/class-wp-links-list-table.php index 9f1edeef3a..b0aab333e0 100644 --- a/wp-admin/includes/class-wp-links-list-table.php +++ b/wp-admin/includes/class-wp-links-list-table.php @@ -228,7 +228,7 @@ class WP_Links_List_Table extends WP_List_Table { echo $cat->get_error_message(); } $cat_name = $cat->name; - if ( $cat_id !== $category ) { + if ( (int) $cat_id !== $category ) { $cat_name = "$cat_name"; } $cat_names[] = $cat_name; diff --git a/wp-includes/version.php b/wp-includes/version.php index bc6b1e3498..4cd7b22674 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta1-46315'; +$wp_version = '5.3-beta1-46316'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.