Make WordPress Core


Ignore:
Timestamp:
09/13/2019 10:19:34 PM (5 years ago)
Author:
jorbin
Message:

GENERAL: Remove magic quote functions

The path to magic quote sanity took a fun and exciting turn: PHP core removed it and WordPress updated the minimum version.

For the formally external pclzip, the code is commented out to make investigating easier and in case we ever need to merge upstream (if that still exists) changes.

Props ayeshrajans, jrf, jorbin.
See #47783.
Fixes #18322.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r45932 r46105  
    926926 */
    927927function wp_magic_quotes() {
    928     // If already slashed, strip.
    929     if ( get_magic_quotes_gpc() ) {
    930         $_GET    = stripslashes_deep( $_GET );
    931         $_POST   = stripslashes_deep( $_POST );
    932         $_COOKIE = stripslashes_deep( $_COOKIE );
    933     }
    934 
    935928    // Escape with wpdb.
    936929    $_GET    = add_magic_quotes( $_GET );
Note: See TracChangeset for help on using the changeset viewer.