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/themes.php

    r37714 r37914  
    1515
    1616if ( !current_user_can('manage_network_themes') )
    17     wp_die( __( 'You do not have sufficient permissions to manage network themes.' ) );
     17    wp_die( __( 'Sorry, you are not allowed to manage network themes.' ) );
    1818
    1919$wp_list_table = _get_list_table('WP_MS_Themes_List_Table');
     
    9191        case 'delete-selected':
    9292            if ( ! current_user_can( 'delete_themes' ) ) {
    93                 wp_die( __('You do not have sufficient permissions to delete themes for this site.') );
     93                wp_die( __('Sorry, you are not allowed to delete themes for this site.') );
    9494            }
    9595
Note: See TracChangeset for help on using the changeset viewer.