WordPress.org

Make WordPress Core

Ticket #19455: 19455.patch

File 19455.patch, 921 bytes (added by kurtpayne, 6 years ago)
  • wp-settings.php

     
    3030
    3131// Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
    3232@ini_set( 'magic_quotes_runtime', 0 );
    33 @ini_set( 'magic_quotes_sybase',  0 );
    3433
    3534// Set default timezone in PHP 5.
    3635if ( function_exists( 'date_default_timezone_set' ) )
  • wp-includes/load.php

     
    533533                $_COOKIE = stripslashes_deep( $_COOKIE );
    534534        }
    535535
     536        // Turn off sybase quoting after stripslashes has run
     537        @ini_set( 'magic_quotes_sybase', 0 );
     538
    536539        // Escape with wpdb.
    537540        $_GET    = add_magic_quotes( $_GET    );
    538541        $_POST   = add_magic_quotes( $_POST   );