Changeset 46105 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 09/13/2019 10:19:34 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
Note: See TracChangeset
for help on using the changeset viewer.