WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/29/2016 03:15:40 PM (5 years ago)
Author:
ocean90
Message:

Text Changes: Unify permission error messages.

The new format looks like "Sorry, you are not allowed to <action>.". This provides a consistent experience for all error messages related to missing permissions. It also reduces the number of similar strings and allows translators to provide a consistent style in their language.

Props ramiy, Presskopp.
Fixes #34521.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-info.php

    r37466 r37914  
    1616
    1717if ( ! current_user_can( 'manage_sites' ) ) {
    18     wp_die( __( 'You do not have sufficient permissions to edit this site.' ) );
     18    wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
    1919}
    2020
     
    4848
    4949if ( ! can_edit_network( $details->site_id ) ) {
    50     wp_die( __( 'You do not have permission to access this page.' ), 403 );
     50    wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    5151}
    5252
Note: See TracChangeset for help on using the changeset viewer.