Changeset 33862
- Timestamp:
- 09/02/2015 06:20:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/nav-menus.php
r33734 r33862 20 20 21 21 // Permissions Check 22 if ( ! current_user_can('edit_theme_options') ) 23 wp_die( __( 'Cheatin’ uh?' ), 403 ); 22 if ( ! current_user_can( 'edit_theme_options' ) ) { 23 wp_die( 24 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 25 '<p>' . __( 'You are not allowed to edit theme options on this site.' ) . '</p>', 26 403 27 ); 28 } 24 29 25 30 wp_enqueue_script( 'nav-menu' );
Note: See TracChangeset
for help on using the changeset viewer.