Make WordPress Core

Changeset 39308


Ignore:
Timestamp:
11/19/2016 01:37:25 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Merge and clarify some permission error strings in the admin.

See #38857.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tags.php

    r38958 r39308  
    1919
    2020if ( ! in_array( $tax->name, get_taxonomies( array( 'show_ui' => true ) ) ) ) {
    21    wp_die( __( 'Sorry, you are not allowed to manage these items.' ) );
     21   wp_die( __( 'Sorry, you are not allowed to edit terms in this taxonomy.' ) );
    2222}
    2323
    … …  
    2525        wp_die(
    2626                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    27                 '<p>' . __( 'Sorry, you are not allowed to manage these items.' ) . '</p>',
     27                '<p>' . __( 'Sorry, you are not allowed to manage terms in this taxonomy.' ) . '</p>',
    2828                403
    2929        );
    … …  
    7575                wp_die(
    7676                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    77                         '<p>' . __( 'Sorry, you are not allowed to add this item.' ) . '</p>',
     77                        '<p>' . __( 'Sorry, you are not allowed to create terms in this taxonomy.' ) . '</p>',
    7878                        403
    7979                );
  • trunk/src/wp-admin/options.php

    r39122 r39308  
    4848        wp_die(
    4949                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    50                 '<p>' . __( 'Sorry, you are not allowed to manage these items.' ) . '</p>',
     50                '<p>' . __( 'Sorry, you are not allowed to manage these options.' ) . '</p>',
    5151                403
    5252        );
  • trunk/src/wp-admin/users.php

    r39258 r39308  
    9595
    9696        if ( ! current_user_can( 'promote_users' ) )
    97                 wp_die( __( 'Sorry, you are not allowed to edit that user.' ) );
     97                wp_die( __( 'Sorry, you are not allowed to edit this user.' ) );
    9898
    9999        if ( empty($_REQUEST['users']) ) {
    … …  
    120120
    121121                if ( ! current_user_can('promote_user', $id) )
    122                         wp_die(__('Sorry, you are not allowed to edit that user.'));
     122                        wp_die(__('Sorry, you are not allowed to edit this user.'));
    123123                // The new role of the current user must also have the promote_users cap or be a multisite super admin
    124124                if ( $id == $current_user->ID && ! $wp_roles->role_objects[ $role ]->has_cap('promote_users')
Note: See TracChangeset for help on using the changeset viewer.