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
This commit is contained in:
Sergey Biryukov 2019-09-26 01:24:56 +00:00
parent 148322a970
commit 6e8f550770
2 changed files with 2 additions and 2 deletions

View File

@ -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 = "<a href='link-manager.php?cat_id=$category'>$cat_name</a>";
}
$cat_names[] = $cat_name;

View File

@ -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.