Ticket #33674: 33674.diff
File 33674.diff, 964 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/options.php
45 45 } 46 46 47 47 if ( !current_user_can( $capability ) ) 48 wp_die( __( 'Cheatin’ uh?' ), 403 ); 48 wp_die( 49 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 50 '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>', 51 403 ); 49 52 50 53 // Handle admin email change requests 51 54 if ( is_multisite() ) { … … 69 72 } 70 73 71 74 if ( is_multisite() && !is_super_admin() && 'update' != $action ) 72 wp_die( __( 'Cheatin’ uh?' ), 403 ); 75 wp_die( 76 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 77 '<p>' . __( 'You are not allowed to delete these items.' ) . '</p>', 78 403 ); 73 79 74 80 $whitelist_options = array( 75 81 'general' => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string', 'WPLANG' ),