Skip to content

Commit b4cb2c9

Browse files
committed
clean_url only REQUEST_URI to avoid breaking the edit link. see WordPress#4001
git-svn-id: https://develop.svn.wordpress.org/trunk@5072 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f4a63da commit b4cb2c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wp-admin/admin-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ function user_row( $user_object, $style = '' ) {
879879
}
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
}
885885
$r .= "</td>\n\t</tr>";

0 commit comments

Comments
 (0)