]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/options-reading.php
Wordpress 4.6
[autoinstalls/wordpress.git] / wp-admin / options-reading.php
index 7d28208d6de96ed512c7f21c996ed51db0149e12..7ad94fbad4f2dc2a9d8137adaba1fedd809f501d 100644 (file)
 require_once( dirname( __FILE__ ) . '/admin.php' );
 
 if ( ! current_user_can( 'manage_options' ) )
-       wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
+       wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
 
 $title = __( 'Reading Settings' );
 $parent_file = 'options-general.php';
 
-/**
- * Display JavaScript on the page.
- *
- * @since 3.5.0
- */
-function options_reading_add_js() {
-?>
-<script type="text/javascript">
-       jQuery(document).ready(function($){
-               var section = $('#front-static-pages'),
-                       staticPage = section.find('input:radio[value="page"]'),
-                       selects = section.find('select'),
-                       check_disabled = function(){
-                               selects.prop( 'disabled', ! staticPage.prop('checked') );
-                       };
-               check_disabled();
-               section.find('input:radio').change(check_disabled);
-       });
-</script>
-<?php
-}
 add_action('admin_head', 'options_reading_add_js');
 
-/**
- * Render the blog charset setting.
- *
- * @since 3.5.0
- */
-function options_reading_blog_charset() {
-       echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';
-       echo '<p class="description">' . __( 'The <a href="https://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
-}
-
 get_current_screen()->add_help_tab( array(
        'id'      => 'overview',
        'title'   => __('Overview'),
@@ -74,7 +43,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
 ?>
 
 <div class="wrap">
-<h2><?php echo esc_html( $title ); ?></h2>
+<h1><?php echo esc_html( $title ); ?></h1>
 
 <form method="post" action="options.php">
 <?php