clean_url only REQUEST_URI to avoid breaking the edit link. see #4001
git-svn-id: https://develop.svn.wordpress.org/trunk@5072 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f4a63dac75
commit
b4cb2c9cf0
|
@ -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>";
|
||||||
|
|
Loading…
Reference in New Issue