Make WordPress Core


Ignore:
Timestamp:
06/29/2016 03:15:40 PM (9 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/media-upload.php

    r37488 r37914  
    1717
    1818if ( ! current_user_can( 'upload_files' ) ) {
    19     wp_die( __( 'You do not have permission to upload files.' ), 403 );
     19    wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 );
    2020}
    2121
     
    4444    wp_die(
    4545        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    46         '<p>' . __( 'You are not allowed to edit this item.' ) . '</p>',
     46        '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>',
    4747        403
    4848    );
Note: See TracChangeset for help on using the changeset viewer.