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

    r37488 r37914  
    4848    wp_die(
    4949        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    50         '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>',
     50        '<p>' . __( 'Sorry, you are not allowed to manage these items.' ) . '</p>',
    5151        403
    5252    );
     
    7777    wp_die(
    7878        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    79         '<p>' . __( 'You are not allowed to delete these items.' ) . '</p>',
     79        '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>',
    8080        403
    8181    );
     
    161161    if ( 'options' == $option_page ) {
    162162        if ( is_multisite() && ! is_super_admin() )
    163             wp_die( __( 'You do not have sufficient permissions to modify unregistered settings for this site.' ) );
     163            wp_die( __( 'Sorry, you are not allowed to modify unregistered settings for this site.' ) );
    164164        $options = explode( ',', wp_unslash( $_POST[ 'page_options' ] ) );
    165165    } else {
Note: See TracChangeset for help on using the changeset viewer.