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/edit-comments.php

    r36302 r37914  
    1212    wp_die(
    1313        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    14         '<p>' . __( 'You are not allowed to edit comments.' ) . '</p>',
     14        '<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>',
    1515        403
    1616    );
     
    211211            break;
    212212        case 2 :
    213             $error_msg = __( 'You are not allowed to edit comments on this post.' );
     213            $error_msg = __( 'Sorry, you are not allowed to edit comments on this post.' );
    214214            break;
    215215    }
Note: See TracChangeset for help on using the changeset viewer.