wp core update 6.6
This commit is contained in:
@@ -12,9 +12,10 @@ require_once __DIR__ . '/admin.php';
|
||||
/** WordPress Translation Installation API */
|
||||
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
|
||||
|
||||
wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) );
|
||||
$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
|
||||
$user_id = ! empty( $_REQUEST['user_id'] ) ? absint( $_REQUEST['user_id'] ) : 0;
|
||||
$wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ? sanitize_text_field( $_REQUEST['wp_http_referer'] ) : '';
|
||||
|
||||
$user_id = (int) $user_id;
|
||||
$current_user = wp_get_current_user();
|
||||
|
||||
if ( ! defined( 'IS_PROFILE_PAGE' ) ) {
|
||||
@@ -437,7 +438,7 @@ switch ( $action ) {
|
||||
<table class="form-table" role="presentation">
|
||||
<tr class="user-user-login-wrap">
|
||||
<th><label for="user_login"><?php _e( 'Username' ); ?></label></th>
|
||||
<td><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr( $profile_user->user_login ); ?>" disabled="disabled" class="regular-text" /> <span class="description"><?php _e( 'Usernames cannot be changed.' ); ?></span></td>
|
||||
<td><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr( $profile_user->user_login ); ?>" readonly="readonly" class="regular-text" /> <span class="description"><?php _e( 'Usernames cannot be changed.' ); ?></span></td>
|
||||
</tr>
|
||||
|
||||
<?php if ( ! IS_PROFILE_PAGE && ! is_network_admin() && current_user_can( 'promote_user', $profile_user->ID ) ) : ?>
|
||||
|
||||
Reference in New Issue
Block a user