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. git-svn-id: https://develop.svn.wordpress.org/trunk@46316 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0257fba2dd
commit
be8218efc7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user