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/user-new.php

    r37488 r37914  
    1414        wp_die(
    1515            '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    16             '<p>' . __( 'You do not have sufficient permissions to add users to this network.' ) . '</p>',
     16            '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>',
    1717            403
    1818        );
     
    2121    wp_die(
    2222        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    23         '<p>' . __( 'You are not allowed to create users.' ) . '</p>',
     23        '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>',
    2424        403
    2525    );
     
    5454        wp_die(
    5555            '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    56             '<p>' . __( 'You do not have sufficient permissions to add users to this network.' ) . '</p>',
     56            '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>',
    5757            403
    5858        );
     
    108108        wp_die(
    109109            '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    110             '<p>' . __( 'You are not allowed to create users.' ) . '</p>',
     110            '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>',
    111111            403
    112112        );
Note: See TracChangeset for help on using the changeset viewer.