WordPress.org

Make WordPress Core

Changeset 5073


Ignore:
Timestamp:
03/21/07 21:49:32 (8 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
  • branches/2.1/wp-admin/admin-functions.php

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