X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fef8173b8c3bad08f495551e43cfdeac1cae6021..refs/tags/wordpress-3.4-scripts:/wp-admin/options-reading.php diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index 7c8e1545..28897c18 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -30,7 +30,7 @@ function add_js() { staticPage = section.find('input:radio[value="page"]'), selects = section.find('select'), check_disabled = function(){ - selects.attr('disabled', staticPage.is(':checked') ? '' : 'disabled'); + selects.prop( 'disabled', ! staticPage.prop('checked') ); }; check_disabled(); section.find('input:radio').change(check_disabled); @@ -41,13 +41,18 @@ function add_js() { } add_action('admin_head', 'add_js'); -add_contextual_help($current_screen, - '

' . __('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.') . '

' . +get_current_screen()->add_help_tab( array( + 'id' => 'overview', + 'title' => __('Overview'), + 'content' => '

' . __('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.') . '

', +) ); + +get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . + '

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

' . '

' . __('Support Forums') . '

' ); @@ -100,17 +105,17 @@ else : - + - +
-


+


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

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