WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/13/2019 10:19:34 PM (3 months 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-admin/includes/class-pclzip.php

    r38101 r46105  
    53275327    $v_result=1;
    53285328
     5329    // EDIT for WordPress 5.3.0
     5330    // magic_quote functions are deprecated in PHP 7.4, now assuming it's always off.
     5331    /*
     5332
    53295333    // ----- Look if function exists
    53305334    if (   (!function_exists("get_magic_quotes_runtime"))
     
    53455349      @set_magic_quotes_runtime(0);
    53465350    }
     5351    */
    53475352
    53485353    // ----- Return
     
    53605365  {
    53615366    $v_result=1;
     5367
     5368    // EDIT for WordPress 5.3.0
     5369    // magic_quote functions are deprecated in PHP 7.4, now assuming it's always off.
     5370    /*
    53625371
    53635372    // ----- Look if function exists
     
    53775386    }
    53785387
     5388    */
    53795389    // ----- Return
    53805390    return $v_result;
Note: See TracChangeset for help on using the changeset viewer.