$user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' );
/**
- * Filter whether to allow administrators on Multisite to edit every user.
+ * Filters whether to allow administrators on Multisite to edit every user.
*
* Enabling the user editing form via this filter also hinges on the user holding
* the 'manage_network_users' cap, and the logged-in user not matching the user
&& $user_id != $current_user->ID
&& ! apply_filters( 'enable_edit_any_user_configuration', true )
) {
- wp_die( __( 'You do not have permission to edit this user.' ) );
+ wp_die( __( 'Sorry, you are not allowed to edit this user.' ) );
}
// Execute confirmed email change. See send_confirmation_on_profile_email().
check_admin_referer('update-user_' . $user_id);
if ( !current_user_can('edit_user', $user_id) )
- wp_die(__('You do not have permission to edit this user.'));
+ wp_die(__('Sorry, you are not allowed to edit this user.'));
if ( IS_PROFILE_PAGE ) {
/**
$profileuser = get_user_to_edit($user_id);
if ( !current_user_can('edit_user', $user_id) )
- wp_die(__('You do not have permission to edit this user.'));
+ wp_die(__('Sorry, you are not allowed to edit this user.'));
$sessions = WP_Session_Tokens::get_instance( $profileuser->ID );
<th><label for="<?php echo $name; ?>">
<?php
/**
- * Filter a user contactmethod label.
+ * Filters a user contactmethod label.
*
* The dynamic portion of the filter hook, `$name`, refers to
* each of the keys in the contactmethods array.
}
/**
- * Filter the user profile picture description displayed under the Gravatar.
+ * Filters the user profile picture description displayed under the Gravatar.
*
* @since 4.4.0
*
<?php
/**
- * Filter the display of the password fields.
+ * Filters the display of the password fields.
*
* @since 1.5.1
* @since 2.8.0 Added the `$profileuser` parameter.
<td>
<label>
<input type="checkbox" name="pw_weak" class="pw-checkbox" />
- <?php _e( 'Confirm use of weak password' ); ?>
+ <span id="pw-weak-text-label"><?php _e( 'Confirm use of potentially weak password' ); ?></span>
</label>
</td>
</tr>
<?php
/**
- * Filter whether to display additional capabilities for the user.
+ * Filters whether to display additional capabilities for the user.
*
* The 'Additional Capabilities' section will only be enabled if
* the number of the user's capabilities exceeds their number of