WordPress.org

Make WordPress Core

Changeset 47033


Ignore:
Timestamp:
01/03/2020 01:12:13 AM (8 months ago)
Author:
SergeyBiryukov
Message:

Link Manager: Use a strict in_array() check in wp-links-opml.php.

Props dkarfa.
Fixes #49106.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-links-opml.php

    r45932 r47033  
    1919if ( ! empty( $_GET['link_cat'] ) ) {
    2020    $link_cat = $_GET['link_cat'];
    21     if ( ! in_array( $link_cat, array( 'all', '0' ) ) ) {
     21    if ( ! in_array( $link_cat, array( 'all', '0' ), true ) ) {
    2222        $link_cat = absint( (string) urldecode( $link_cat ) );
    2323    }
Note: See TracChangeset for help on using the changeset viewer.