From e9e5d8e2b2332594b87b2a6ce99029fd61daaf54 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 20 Apr 2020 12:12:06 +0000 Subject: [PATCH] External Libraries: Comment out magic quote functions in getID3(). For some reason, the `version_compare()` check does not work as expected on Travis. Follow-up to [46113], [47601]. See #49945. Built from https://develop.svn.wordpress.org/trunk@47603 git-svn-id: http://core.svn.wordpress.org/trunk@47378 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ID3/getid3.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/ID3/getid3.php b/wp-includes/ID3/getid3.php index cc238253d5..72cfde96b2 100644 --- a/wp-includes/ID3/getid3.php +++ b/wp-includes/ID3/getid3.php @@ -298,6 +298,9 @@ class getID3 // check for magic quotes in PHP < 7.4.0 (when these functions became deprecated) if (version_compare(PHP_VERSION, '7.4.0', '<')) { + // WORDPRESS CHANGE FROM UPSTREAM + // Comment out deprecated function + /* // Check for magic_quotes_runtime if (function_exists('get_magic_quotes_runtime')) { if (get_magic_quotes_runtime()) { @@ -310,6 +313,7 @@ class getID3 $this->startup_error .= 'magic_quotes_gpc must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_gpc(0) and set_magic_quotes_gpc(1).'."\n"; } } + **/ } // Load support library diff --git a/wp-includes/version.php b/wp-includes/version.php index bbafacee46..955f64fac6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47602'; +$wp_version = '5.5-alpha-47603'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.