Make WordPress Core

Ticket #33674: 33674.diff

File 33674.diff, 964 bytes (added by kraftbj, 9 years ago)

original props ericlewis. modified to reuse similar strings introduced in other cheatin patches.

  • src/wp-admin/options.php

     
    4545}
    4646
    4747if ( !current_user_can( $capability ) )
    48         wp_die( __( 'Cheatin’ uh?' ), 403 );
     48        wp_die(
     49                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     50                '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>',
     51                403 );
    4952
    5053// Handle admin email change requests
    5154if ( is_multisite() ) {
     
    6972}
    7073
    7174if ( is_multisite() && !is_super_admin() && 'update' != $action )
    72         wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
     75        wp_die(
     76                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     77                '<p>' . __( 'You are not allowed to delete these items.' ) . '</p>',
     78                403 );
    7379
    7480$whitelist_options = array(
    7581        'general' => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string', 'WPLANG' ),