WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/29/2016 03:15:40 PM (3 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/link-manager.php

    r36302 r37914  
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111if ( ! current_user_can( 'manage_links' ) )
    12     wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
     12    wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
    1313
    1414$wp_list_table = _get_list_table('WP_Links_List_Table');
     
    6969
    7070if ( ! current_user_can('manage_links') )
    71     wp_die(__("You do not have sufficient permissions to edit the links for this site."));
     71    wp_die(__('Sorry, you are not allowed to edit the links for this site.'));
    7272
    7373?>
Note: See TracChangeset for help on using the changeset viewer.