Make WordPress Core


Ignore:
Timestamp:
06/14/2007 10:46:59 PM (17 years ago)
Author:
ryan
Message:

wp_parse_str() from mdawaffe. see #4467

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r5700 r5709  
    11891189}
    11901190
     1191function wp_parse_str( $string, &$array ) {
     1192    parse_str( $string, $array );
     1193    if ( get_magic_quotes_gpc() )
     1194        $array = stripslashes_deep( $array ); // parse_str() adds slashes if magicquotes is on.  See: http://php.net/parse_str
     1195    $array = apply_filters( 'wp_parse_str', $array );
     1196}
     1197
    11911198?>
Note: See TracChangeset for help on using the changeset viewer.