Make WordPress Core


Ignore:
Timestamp:
03/21/2007 06:23:22 AM (18 years ago)
Author:
ryan
Message:

clean_url only REQUEST_URI to avoid breaking the edit link. see #4001

File:
1 edited

Legend:

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

    r5071 r5072  
    880880    $r .= "</td>\n\t\t<td>";
    881881    if ( current_user_can( 'edit_user', $user_object->ID ) ) {
    882         $edit_link = clean_url( add_query_arg( 'wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), "user-edit.php?user_id=$user_object->ID" ));
     882        $edit_link = add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" );
    883883        $r .= "<a href='$edit_link' class='edit'>".__( 'Edit' )."</a>";
    884884    }
Note: See TracChangeset for help on using the changeset viewer.