From 602b46626c106e128e0f991575967858538a941a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 7 Feb 2022 15:26:01 +0000 Subject: [PATCH] Coding Standards: Rename the `$profileuser` variable to `$profile_user` in `wp-admin/user-edit.php`. This brings the naming more in line with other variables like `$current_user`. Follow-up to [2872]. See #54728. Built from https://develop.svn.wordpress.org/trunk@52689 git-svn-id: http://core.svn.wordpress.org/trunk@52278 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-edit.php | 133 ++++++++++++++++++++-------------------- wp-includes/version.php | 2 +- 2 files changed, 69 insertions(+), 66 deletions(-) diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 9e6ae4c278..45fe5ecea3 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -185,19 +185,19 @@ switch ( $action ) { // Intentional fall-through to display $errors. default: - $profileuser = get_user_to_edit( $user_id ); + $profile_user = get_user_to_edit( $user_id ); if ( ! current_user_can( 'edit_user', $user_id ) ) { wp_die( __( 'Sorry, you are not allowed to edit this user.' ) ); } - $title = sprintf( $title, $profileuser->display_name ); - $sessions = WP_Session_Tokens::get_instance( $profileuser->ID ); + $title = sprintf( $title, $profile_user->display_name ); + $sessions = WP_Session_Tokens::get_instance( $profile_user->ID ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?> - ID ) && current_user_can( 'manage_network_options' ) ) { ?> + ID ) && current_user_can( 'manage_network_options' ) ) { ?>

@@ -270,7 +270,7 @@ switch ( $action ) { -