WordPress.org

Make WordPress Core

Changeset 46316


Ignore:
Timestamp:
09/26/2019 01:23:23 AM (3 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-links-list-table.php

    r46314 r46316  
    229229            }
    230230            $cat_name = $cat->name;
    231             if ( $cat_id !== $category ) {
     231            if ( (int) $cat_id !== $category ) {
    232232                $cat_name = "<a href='link-manager.php?cat_id=$category'>$cat_name</a>";
    233233            }
Note: See TracChangeset for help on using the changeset viewer.