diff options
Diffstat (limited to '')
-rw-r--r-- | wp-admin/user-edit.php | 7 | ||||
-rw-r--r-- | wp-admin/user/contribute.php | 13 | ||||
-rw-r--r-- | wp-admin/users.php | 2 |
3 files changed, 18 insertions, 4 deletions
diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index bbb321a..0ab9aec 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -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 ) ) : ?> diff --git a/wp-admin/user/contribute.php b/wp-admin/user/contribute.php new file mode 100644 index 0000000..22dc300 --- /dev/null +++ b/wp-admin/user/contribute.php @@ -0,0 +1,13 @@ +<?php +/** + * User Dashboard Contribute administration panel. + * + * @package WordPress + * @subpackage Administration + * @since 6.6.0 + */ + +/** Load WordPress Administration Bootstrap */ +require_once __DIR__ . '/admin.php'; + +require ABSPATH . 'wp-admin/contribute.php'; diff --git a/wp-admin/users.php b/wp-admin/users.php index 94d891a..4951a7e 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -33,7 +33,7 @@ get_current_screen()->add_help_tab( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '<p>' . __( 'This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options in the dashboard navigation when they are logged in, based on their role.' ) . '</p>' . - '<p>' . __( 'To add a new user for your site, click the Add New button at the top of the screen or Add New in the Users menu section.' ) . '</p>', + '<p>' . __( 'To add a new user for your site, click the Add New User button at the top of the screen or Add New User in the Users menu section.' ) . '</p>', ) ); |