Changeset 6008

Show
Ignore:
Timestamp:
09/02/07 05:49:54 (1 year ago)
Author:
markjaquith
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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}