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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-21 06:23:22 +00:00
parent 408b5ce591
commit 1f09b04793
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ function user_row( $user_object, $style = '' ) {
} }
$r .= "</td>\n\t\t<td>"; $r .= "</td>\n\t\t<td>";
if ( current_user_can( 'edit_user', $user_object->ID ) ) { if ( current_user_can( 'edit_user', $user_object->ID ) ) {
$edit_link = clean_url( add_query_arg( 'wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), "user-edit.php?user_id=$user_object->ID" )); $edit_link = add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" );
$r .= "<a href='$edit_link' class='edit'>".__( 'Edit' )."</a>"; $r .= "<a href='$edit_link' class='edit'>".__( 'Edit' )."</a>";
} }
$r .= "</td>\n\t</tr>"; $r .= "</td>\n\t</tr>";