Make WordPress Core


Ignore:
Timestamp:
06/15/2007 05:35:56 PM (19 years ago)
Author:
ryan
Message:

wp_parse_str() from mdawaffe. fixes #4467

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/formatting.php

    r5262 r5713  
    11191119}
    11201120
     1121function wp_parse_str( $string, &$array ) {
     1122    parse_str( $string, $array );
     1123    if ( get_magic_quotes_gpc() )
     1124        $array = stripslashes_deep( $array ); // parse_str() adds slashes if magicquotes is on.  See: http://php.net/parse_str
     1125    $array = apply_filters( 'wp_parse_str', $array );
     1126}
     1127
    11211128?>
Note: See TracChangeset for help on using the changeset viewer.