]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/options.php
Wordpress 4.5.3-scripts
[autoinstalls/wordpress.git] / wp-admin / options.php
index 752d7b46ffe21a8003271b4eda405746646ceca6..6bad0fd61f7e8053cd9eba444c1c5d384b86eb89 100644 (file)
@@ -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(
+               '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
+               '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>',
+               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&#8217; uh?' ), 403 );
+if ( is_multisite() && ! is_super_admin() && 'update' != $action ) {
+       wp_die(
+               '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
+               '<p>' . __( 'You are not allowed to delete these items.' ) . '</p>',
+               403
+       );
+}
 
 $whitelist_options = array(
        'general' => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string', 'WPLANG' ),
@@ -184,8 +194,15 @@ if ( 'update' == $action ) {
 
        if ( $options ) {
                foreach ( $options as $option ) {
-                       if ( $unregistered )
-                               _deprecated_argument( 'options.php', '2.7', sprintf( __( 'The <code>%1$s</code> setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ), $option, $option_page ) );
+                       if ( $unregistered ) {
+                               _deprecated_argument( 'options.php', '2.7',
+                                       sprintf(
+                                               /* translators: %s: the option/setting */
+                                               __( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ),
+                                               '<code>' . $option . '</code>'
+                                       )
+                               );
+                       }
 
                        $option = trim( $option );
                        $value = null;