]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/options-reading.php
WordPress 4.5.1-scripts
[autoinstalls/wordpress.git] / wp-admin / options-reading.php
index 7bcb20be61b318e021e75cfa50a218290210b960..d0bc190f78b12370eb85af0ddf0d8137af8a5e82 100644 (file)
@@ -15,41 +15,8 @@ if ( ! current_user_can( 'manage_options' ) )
 $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">
-//<![CDATA[
-       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="http://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'),
@@ -68,7 +35,7 @@ get_current_screen()->add_help_tab( array(
 
 get_current_screen()->set_help_sidebar(
        '<p><strong>' . __('For more information:') . '</strong></p>' .
-       '<p>' . __('<a href="http://codex.wordpress.org/Settings_Reading_Screen" target="_blank">Documentation on Reading Settings</a>') . '</p>' .
+       '<p>' . __('<a href="https://codex.wordpress.org/Settings_Reading_Screen" target="_blank">Documentation on Reading Settings</a>') . '</p>' .
        '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
 );
 
@@ -76,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