$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’ uh?' ) . '</h1>' .
+ '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>',
+ 403
+ );
+}
// Handle admin email change requests
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(
+ '<h1>' . __( 'Cheatin’ 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' ),
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;