Changeset 33863 for trunk/src/wp-admin/options.php
- Timestamp:
- 09/02/2015 06:30:58 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options.php
r33037 r33863 45 45 } 46 46 47 if ( !current_user_can( $capability ) ) 48 wp_die( __( 'Cheatin’ uh?' ), 403 ); 47 if ( ! current_user_can( $capability ) ) { 48 wp_die( 49 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 50 '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>', 51 403 52 ); 53 } 49 54 50 55 // Handle admin email change requests … … 69 74 } 70 75 71 if ( is_multisite() && !is_super_admin() && 'update' != $action ) 72 wp_die( __( 'Cheatin’ uh?' ), 403 ); 76 if ( is_multisite() && ! is_super_admin() && 'update' != $action ) { 77 wp_die( 78 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 79 '<p>' . __( 'You are not allowed to delete these items.' ) . '</p>', 80 403 81 ); 82 } 73 83 74 84 $whitelist_options = array(
Note: See TracChangeset
for help on using the changeset viewer.