Make WordPress Core


Ignore:
Timestamp:
09/02/2007 05:49:54 AM (18 years ago)
Author:
markjaquith
Message:

Eliminate double urlencode()ing in add_query_arg(). Move &-to-& conversion to wp_nonce_url(). fixes #4884

File:
1 edited

Legend:

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

    r6005 r6008  
    607607    }
    608608
    609     $uri = str_replace('&', '&', $uri);
    610 
    611609    if ( $frag = strstr($uri, '#') )
    612610        $uri = substr($uri, 0, -strlen($frag));
     
    639637
    640638    wp_parse_str($query, $qs);
    641     $qs = urlencode_deep($qs);
    642639    if ( is_array(func_get_arg(0)) ) {
    643640        $kayvees = func_get_arg(0);
     
    854851
    855852function wp_nonce_url($actionurl, $action = -1) {
     853    $actionurl = str_replace('&', '&', $actionurl);
    856854    return wp_specialchars(add_query_arg('_wpnonce', wp_create_nonce($action), $actionurl));
    857855}
Note: See TracChangeset for help on using the changeset viewer.