From ba033e96efdafe40ece28611f82d334cb83adc70 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 3 Jan 2020 01:14:02 +0000 Subject: [PATCH] Link Manager: Use a strict `in_array()` check in `wp-links-opml.php`. Props dkarfa. Fixes #49106. Built from https://develop.svn.wordpress.org/trunk@47033 git-svn-id: http://core.svn.wordpress.org/trunk@46833 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-links-opml.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 3cfa2ba23a..04b694ce05 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47032'; +$wp_version = '5.4-alpha-47033'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-links-opml.php b/wp-links-opml.php index 12d35b008a..2bc214185d 100644 --- a/wp-links-opml.php +++ b/wp-links-opml.php @@ -18,7 +18,7 @@ header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true $link_cat = ''; if ( ! empty( $_GET['link_cat'] ) ) { $link_cat = $_GET['link_cat']; - if ( ! in_array( $link_cat, array( 'all', '0' ) ) ) { + if ( ! in_array( $link_cat, array( 'all', '0' ), true ) ) { $link_cat = absint( (string) urldecode( $link_cat ) ); } }