Changeset 33886
- Timestamp:
- 09/03/2015 08:55:53 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/widgets.php
r33067 r33886 13 13 require_once(ABSPATH . 'wp-admin/includes/widgets.php'); 14 14 15 if ( ! current_user_can('edit_theme_options') ) 16 wp_die( __( 'Cheatin’ uh?' ), 403 ); 15 if ( ! current_user_can( 'edit_theme_options' ) ) { 16 wp_die( 17 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 18 '<p>' . __( 'You are not allowed to edit theme options on this site.' ) . '</p>', 19 403 20 ); 21 } 17 22 18 23 $widgets_access = get_user_setting( 'widgets_access' );
Note: See TracChangeset
for help on using the changeset viewer.