Make WordPress Core

Ticket #33673: 33673.diff

File 33673.diff, 514 bytes (added by kraftbj, 9 years ago)

original props ericlewis. modified from original to reuse string introduced in other cheatin patches.

  • src/wp-admin/nav-menus.php

     
    2020
    2121// Permissions Check
    2222if ( ! current_user_can('edit_theme_options') )
    23         wp_die( __( 'Cheatin’ uh?' ), 403 );
     23        wp_die(
     24                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     25                '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>',
     26                403 );
    2427
    2528wp_enqueue_script( 'nav-menu' );
    2629