Changeset 46105
- Timestamp:
- 09/13/2019 10:19:34 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-pclzip.php
r38101 r46105 5327 5327 $v_result=1; 5328 5328 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 5329 5333 // ----- Look if function exists 5330 5334 if ( (!function_exists("get_magic_quotes_runtime")) … … 5345 5349 @set_magic_quotes_runtime(0); 5346 5350 } 5351 */ 5347 5352 5348 5353 // ----- Return … … 5360 5365 { 5361 5366 $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 /* 5362 5371 5363 5372 // ----- Look if function exists … … 5377 5386 } 5378 5387 5388 */ 5379 5389 // ----- Return 5380 5390 return $v_result; -
trunk/src/wp-includes/formatting.php
r45990 r46105 2714 2714 */ 2715 2715 function addslashes_gpc( $gpc ) { 2716 if ( get_magic_quotes_gpc() ) {2717 $gpc = stripslashes( $gpc );2718 }2719 2720 2716 return wp_slash( $gpc ); 2721 2717 } … … 4783 4779 * Parses a string into variables to be stored in an array. 4784 4780 * 4785 * Uses {@link https://secure.php.net/parse_str parse_str()} and stripslashes if4786 * {@link https://secure.php.net/magic_quotes magic_quotes_gpc} is on.4787 4781 * 4788 4782 * @since 2.2.1 … … 4793 4787 function wp_parse_str( $string, &$array ) { 4794 4788 parse_str( $string, $array ); 4795 if ( get_magic_quotes_gpc() ) { 4796 $array = stripslashes_deep( $array ); 4797 } 4789 4798 4790 /** 4799 4791 * Filters the array of variables derived from a parsed string. -
trunk/src/wp-includes/load.php
r45932 r46105 926 926 */ 927 927 function 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 935 928 // Escape with wpdb. 936 929 $_GET = add_magic_quotes( $_GET ); -
trunk/src/wp-includes/rest-api/class-wp-rest-request.php
r45932 r46105 691 691 692 692 /* 693 * Amazingly, parse_str follows magic quote rules. Sigh.694 *695 * NOTE: Do not refactor to use `wp_unslash`.696 */697 if ( get_magic_quotes_gpc() ) {698 $params = stripslashes_deep( $params );699 }700 701 /*702 693 * Add to the POST parameters stored internally. If a user has already 703 694 * set these manually (via `set_body_params`), don't override them.
Note: See TracChangeset
for help on using the changeset viewer.