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

    r37714 r37914  
    1313    wp_die(
    1414        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    15         '<p>' . __( 'You are not allowed to edit theme options on this site.' ) . '</p>',
     15        '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>',
    1616        403
    1717    );
     
    4141            wp_die(
    4242                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    43                 '<p>' . __( 'You are not allowed to delete this item.' ) . '</p>',
     43                '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>',
    4444                403
    4545            );
Note: See TracChangeset for help on using the changeset viewer.