mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-05 09:40:13 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@46316 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user