Skip to content
Permalink
Browse files

General: Correct strict comparison in `WP_Links_List_Table::column_ca…

…tegories()` 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
  • Loading branch information...
SergeyBiryukov committed Sep 26, 2019
1 parent 0257fba commit be8218efc7f05b969c34ab0d0c3f9eb4d52243d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wp-admin/includes/class-wp-links-list-table.php
@@ -228,7 +228,7 @@ public function column_categories( $link ) {
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;

0 comments on commit be8218e

Please sign in to comment.
You can’t perform that action at this time.