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/user-new.php

    r36697 r37914  
    1515
    1616if ( ! current_user_can('create_users') )
    17     wp_die(__('You do not have sufficient permissions to add users to this network.'));
     17    wp_die(__('Sorry, you are not allowed to add users to this network.'));
    1818
    1919get_current_screen()->add_help_tab( array(
     
    3535
    3636    if ( ! current_user_can( 'manage_network_users' ) )
    37         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     37        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    3838
    3939    if ( ! is_array( $_POST['user'] ) )
Note: See TracChangeset for help on using the changeset viewer.