WordPress.org

Make WordPress Core

Changeset 38666


Ignore:
Timestamp:
09/28/2016 12:16:44 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Unify two more permission error messages.

Props ramiy.
Fixes #38158. See #34521.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r38625 r38666  
    20162016                'success' => false,
    20172017                'data'    => array(
    2018                     'message'  => __( "You don't have permission to attach files to this post." ),
     2018                    'message'  => __( 'Sorry, you are not allowed to attach files to this post.' ),
    20192019                    'filename' => $_FILES['async-upload']['name'],
    20202020                )
  • trunk/src/wp-admin/users.php

    r38647 r38666  
    383383        } elseif ( !current_user_can('remove_user', $id) ) {
    384384            /* translators: 1: user id, 2: user login */
    385             echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>You don&#8217;t have permission to remove this user.</strong>'), $id, $user->user_login) . "</li>\n";
     385            echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>Sorry, you are not allowed to remove this user.</strong>'), $id, $user->user_login) . "</li>\n";
    386386        } else {
    387387            /* translators: 1: user id, 2: user login */
Note: See TracChangeset for help on using the changeset viewer.