diff --git a/wp-admin/options.php b/wp-admin/options.php index 752d7b46ff..a4809cf618 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -44,8 +44,13 @@ if ( empty($option_page) ) { $capability = apply_filters( "option_page_capability_{$option_page}", $capability ); } -if ( !current_user_can( $capability ) ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); +if ( ! current_user_can( $capability ) ) { + wp_die( + '
' . __( 'You are not allowed to manage these items.' ) . '
', + 403 + ); +} // Handle admin email change requests if ( is_multisite() ) { @@ -68,8 +73,13 @@ if ( is_multisite() ) { } } -if ( is_multisite() && !is_super_admin() && 'update' != $action ) - wp_die( __( 'Cheatin’ uh?' ), 403 ); +if ( is_multisite() && ! is_super_admin() && 'update' != $action ) { + wp_die( + '' . __( 'You are not allowed to delete these items.' ) . '
', + 403 + ); +} $whitelist_options = array( 'general' => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string', 'WPLANG' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index c0b699b442..c62475a68a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33862'; +$wp_version = '4.4-alpha-33863'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.