X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/d3b1ea255664edd2deef17f900a655613d20820d..f9001779751f83dc8a10e478bfecb4d8dd5f964c:/wp-admin/options-reading.php diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index 64410c38..7c8e1545 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -7,12 +7,51 @@ */ /** WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once( './admin.php' ); -$title = __('Reading Settings'); +if ( ! current_user_can( 'manage_options' ) ) + wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); + +$title = __( 'Reading Settings' ); $parent_file = 'options-general.php'; -include('admin-header.php'); +/** + * Display JavaScript on the page. + * + * @package WordPress + * @subpackage Reading_Settings_Screen + */ +function add_js() { +?> + +' . __('This screen contains the settings that affect the display of your content.') . '

' . + '

' . sprintf(__('You can choose what’s displayed on the front page of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static home page, you first need to create two Pages. One will become the front page, and the other will be where your posts are displayed.'), 'post-new.php?post_type=page') . '

' . + '

' . __('You can also control the display of your content in RSS feeds, including the maximum numbers of posts to display, whether to show full text or a summary, and the character set encoding.') . '

' . + '

' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '

' . + '

' . __('For more information:') . '

' . + '

' . __('Documentation on Reading Settings') . '

' . + '

' . __('Support Forums') . '

' +); + +include( './admin-header.php' ); ?>
@@ -20,68 +59,73 @@ include('admin-header.php');

- + + + + +
- - - + - + - - + + - - + - - + + - +
+

    -
  • ".__('Front page: %s')."", wp_dropdown_pages("name=page_on_front&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_on_front'))); ?>
  • -
  • ".__('Posts page: %s')."", wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?>
  • +
  • +
- -
-

- Warning: these pages should not be the same!'); ?> -

-
+ +

Warning: these pages should not be the same!' ); ?>

- +
-


-

+
+


+

-recommended)') ?> +character encoding of your site (UTF-8 is recommended, if you are adventurous there are some other encodings)' ); ?>
- + -

- -

+
- +