WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/29/2016 03:15:40 PM (4 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-includes/revision.php

    r37854 r37914  
    546546
    547547        if ( false === wp_verify_nonce( $_GET['preview_nonce'], 'post_preview_' . $id ) )
    548             wp_die( __('You do not have permission to preview drafts.') );
     548            wp_die( __('Sorry, you are not allowed to preview drafts.') );
    549549
    550550        add_filter('the_preview', '_set_preview');
Note: See TracChangeset for help on using the changeset viewer.