Ticket #33680: 33680.diff
File 33680.diff, 606 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/widgets.php
13 13 require_once(ABSPATH . 'wp-admin/includes/widgets.php'); 14 14 15 15 if ( ! current_user_can('edit_theme_options') ) 16 wp_die( __( 'Cheatin’ uh?' ), 403 ); 16 wp_die( 17 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 18 '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>', 19 403 ); 17 20 18 21 $widgets_access = get_user_setting( 'widgets_access' ); 19 22 if ( isset($_GET['widgets-access']) ) {