Fix the "Back to Authors and Users" link on Edit Users page. props SergeyBiryukov. fixes #16275
git-svn-id: https://develop.svn.wordpress.org/trunk@17324 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9fd728dc4e
commit
5a60e327c2
@ -229,7 +229,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
|||||||
if ( get_current_user_id() == $user_object->ID ) {
|
if ( get_current_user_id() == $user_object->ID ) {
|
||||||
$edit_link = 'profile.php';
|
$edit_link = 'profile.php';
|
||||||
} else {
|
} else {
|
||||||
$edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( esc_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" ) );
|
$edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), "user-edit.php?user_id=$user_object->ID" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set up the hover actions for this user
|
// Set up the hover actions for this user
|
||||||
|
Loading…
Reference in New Issue
Block a user