WordPress.org

Make WordPress Core

Ticket #47783: 47783-magic_quotes_deprecation-getid3.patch

File 47783-magic_quotes_deprecation-getid3.patch, 1.2 KB (added by ayeshrajans, 4 months ago)
  • src/wp-includes/ID3/getid3.php

    diff --git a/src/wp-includes/ID3/getid3.php b/src/wp-includes/ID3/getid3.php
    index f39175ad34..e02d9fc3f4 100644
    a b public function __construct() { 
    150150                        $this->startup_error .= 'WARNING: php.ini contains "mbstring.func_overload = '.ini_get('mbstring.func_overload').'", getID3 cannot run with this setting (bitmask 2 (string functions) cannot be set). Recommended to disable entirely.'."\n";
    151151                }
    152152
    153                 // Check for magic_quotes_runtime
    154                 if (function_exists('get_magic_quotes_runtime')) {
    155                         if (get_magic_quotes_runtime()) {
    156                                 $this->startup_error .= 'magic_quotes_runtime must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_runtime(0) and set_magic_quotes_runtime(1).'."\n";
    157                         }
    158                 }
    159 
    160                 // Check for magic_quotes_gpc
    161                 if (function_exists('magic_quotes_gpc')) {
    162                         if (get_magic_quotes_gpc()) {
    163                                 $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";
    164                         }
    165                 }
    166 
    167153                // Load support library
    168154                if (!include_once(GETID3_INCLUDEPATH.'getid3.lib.php')) {
    169155                        $this->startup_error .= 'getid3.lib.php is missing or corrupt'."\n";