WordPress.org

Make WordPress Core

Ticket #19455: 19455.2.patch

File 19455.2.patch, 932 bytes (added by chriscct7, 6 years ago)
  • src/wp-includes/load.php

     
    590590                $_COOKIE = stripslashes_deep( $_COOKIE );
    591591        }
    592592
     593        // Turn off sybase quoting after stripslashes has run
     594        @ini_set( 'magic_quotes_sybase', 0 );
     595
    593596        // Escape with wpdb.
    594597        $_GET    = add_magic_quotes( $_GET    );
    595598        $_POST   = add_magic_quotes( $_POST   );
  • src/wp-settings.php

     
    3737
    3838// Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
    3939@ini_set( 'magic_quotes_runtime', 0 );
    40 @ini_set( 'magic_quotes_sybase',  0 );
    4140
    4241// WordPress calculates offsets from UTC.
    4342date_default_timezone_set( 'UTC' );