]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/options-reading.php
WordPress 4.7.1-scripts
[autoinstalls/wordpress.git] / wp-admin / options-reading.php
index 9341e7fcf42119434956a32dcdc2e21dc13f2d98..69c425f75912a76b8d4d69c0e21b69a7b575d9fd 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'),
@@ -66,8 +35,8 @@ get_current_screen()->add_help_tab( array(
 
 get_current_screen()->set_help_sidebar(
        '<p><strong>' . __('For more information:') . '</strong></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>'
+       '<p>' . __('<a href="https://codex.wordpress.org/Settings_Reading_Screen">Documentation on Reading Settings</a>') . '</p>' .
+       '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
 );
 
 include( ABSPATH . 'wp-admin/admin-header.php' );