From 1f09b0479354425c278389ad1bfb2927ccd8d83e Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 21 Mar 2007 06:23:22 +0000 Subject: [PATCH] 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 --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index d6966d501d..b9a2cb8ce6 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -879,7 +879,7 @@ function user_row( $user_object, $style = '' ) { } $r .= "\n\t\t"; 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 .= "".__( 'Edit' ).""; } $r .= "\n\t";