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/includes/bookmark.php

    r37353 r37914  
    3030        wp_die(
    3131            '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    32             '<p>' . __( 'You do not have sufficient permissions to edit the links for this site.' ) . '</p>',
     32            '<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>',
    3333            403
    3434        );
     
    313313    }
    314314
    315     wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
    316 }
     315    wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
     316}
Note: See TracChangeset for help on using the changeset viewer.