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

    r36887 r37914  
    2121
    2222    if ( !current_user_can('edit_post', $attachment_id) )
    23         wp_die ( __('You are not allowed to edit this attachment.') );
     23        wp_die ( __('Sorry, you are not allowed to edit this attachment.') );
    2424
    2525    $errors = media_upload_form_handler();
     
    5555
    5656    if ( !current_user_can('edit_post', $att_id) )
    57         wp_die ( __('You are not allowed to edit this attachment.') );
     57        wp_die ( __('Sorry, you are not allowed to edit this attachment.') );
    5858
    5959    $att = get_post($att_id);
Note: See TracChangeset for help on using the changeset viewer.