Make WordPress Core


Ignore:
Timestamp:
02/19/2018 02:12:41 AM (7 years ago)
Author:
peterwilsoncc
Message:

General: Further improve error messages following [42648].

Props kristastevens, melchoyce.
Fixes #38332 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options.php

    r42671 r42719  
    4747if ( ! current_user_can( $capability ) ) {
    4848    wp_die(
    49         '<h1>' . __( 'You don&#8217;t have permission to do this.' ) . '</h1>' .
     49        '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
    5050        '<p>' . __( 'Sorry, you are not allowed to manage these options.' ) . '</p>',
    5151        403
     
    7575if ( is_multisite() && ! current_user_can( 'manage_network_options' ) && 'update' != $action ) {
    7676    wp_die(
    77         '<h1>' . __( 'You don&#8217;t have permission to do this.' ) . '</h1>' .
     77        '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
    7878        '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>',
    7979        403
Note: See TracChangeset for help on using the changeset viewer.