Make WordPress Core

Ticket #33680: 33680.diff

File 33680.diff, 606 bytes (added by kraftbj, 10 years ago)

original props ericlews. modified to use existing strings.

  • src/wp-admin/widgets.php

     
    1313require_once(ABSPATH . 'wp-admin/includes/widgets.php');
    1414
    1515if ( ! current_user_can('edit_theme_options') )
    16         wp_die( __( 'Cheatin’ uh?' ), 403 );
     16        wp_die(
     17                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     18                '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>',
     19                403 );
    1720
    1821$widgets_access = get_user_setting( 'widgets_access' );
    1922if ( isset($_GET['widgets-access']) ) {