mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
148322a970
commit
6e8f550770
@ -228,7 +228,7 @@ class WP_Links_List_Table extends WP_List_Table {
|
|||||||
echo $cat->get_error_message();
|
echo $cat->get_error_message();
|
||||||
}
|
}
|
||||||
$cat_name = $cat->name;
|
$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_name = "<a href='link-manager.php?cat_id=$category'>$cat_name</a>";
|
||||||
}
|
}
|
||||||
$cat_names[] = $cat_name;
|
$cat_names[] = $cat_name;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user