~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/user-edit.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
$user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' );
61
61
 
62
62
/**
63
 
 * Filter whether to allow administrators on Multisite to edit every user.
 
63
 * Filters whether to allow administrators on Multisite to edit every user.
64
64
 *
65
65
 * Enabling the user editing form via this filter also hinges on the user holding
66
66
 * the 'manage_network_users' cap, and the logged-in user not matching the user
77
77
        && $user_id != $current_user->ID
78
78
        && ! apply_filters( 'enable_edit_any_user_configuration', true )
79
79
) {
80
 
        wp_die( __( 'You do not have permission to edit this user.' ) );
 
80
        wp_die( __( 'Sorry, you are not allowed to edit this user.' ) );
81
81
}
82
82
 
83
83
// Execute confirmed email change. See send_confirmation_on_profile_email().
110
110
check_admin_referer('update-user_' . $user_id);
111
111
 
112
112
if ( !current_user_can('edit_user', $user_id) )
113
 
        wp_die(__('You do not have permission to edit this user.'));
 
113
        wp_die(__('Sorry, you are not allowed to edit this user.'));
114
114
 
115
115
if ( IS_PROFILE_PAGE ) {
116
116
        /**
163
163
$profileuser = get_user_to_edit($user_id);
164
164
 
165
165
if ( !current_user_can('edit_user', $user_id) )
166
 
        wp_die(__('You do not have permission to edit this user.'));
 
166
        wp_die(__('Sorry, you are not allowed to edit this user.'));
167
167
 
168
168
$sessions = WP_Session_Tokens::get_instance( $profileuser->ID );
169
169
 
426
426
        <th><label for="<?php echo $name; ?>">
427
427
                <?php
428
428
                /**
429
 
                 * Filter a user contactmethod label.
 
429
                 * Filters a user contactmethod label.
430
430
                 *
431
431
                 * The dynamic portion of the filter hook, `$name`, refers to
432
432
                 * each of the keys in the contactmethods array.
470
470
                        }
471
471
 
472
472
                        /**
473
 
                         * Filter the user profile picture description displayed under the Gravatar.
 
473
                         * Filters the user profile picture description displayed under the Gravatar.
474
474
                         *
475
475
                         * @since 4.4.0
476
476
                         *
484
484
 
485
485
<?php
486
486
/**
487
 
 * Filter the display of the password fields.
 
487
 * Filters the display of the password fields.
488
488
 *
489
489
 * @since 1.5.1
490
490
 * @since 2.8.0 Added the `$profileuser` parameter.
531
531
        <td>
532
532
                <label>
533
533
                        <input type="checkbox" name="pw_weak" class="pw-checkbox" />
534
 
                        <?php _e( 'Confirm use of weak password' ); ?>
 
534
                        <span id="pw-weak-text-label"><?php _e( 'Confirm use of potentially weak password' ); ?></span>
535
535
                </label>
536
536
        </td>
537
537
</tr>
601
601
 
602
602
<?php
603
603
/**
604
 
 * Filter whether to display additional capabilities for the user.
 
604
 * Filters whether to display additional capabilities for the user.
605
605
 *
606
606
 * The 'Additional Capabilities' section will only be enabled if
607
607
 * the number of the user's capabilities exceeds their number of