diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index 34c48f0f76..d15502d75a 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -18,8 +18,7 @@ $parent_file = 'options-general.php'; /** * Display JavaScript on the page. * - * @package WordPress - * @subpackage Reading_Settings_Screen + * @since 3.5.0 */ function options_reading_add_js() { ?> @@ -41,6 +40,16 @@ function options_reading_add_js() { } add_action('admin_head', 'options_reading_add_js'); +/** + * Render the blog charset setting. + * + * @since 3.5.0 + */ +function options_reading_blog_charset() { + echo ''; + echo '

' . __( 'The character encoding of your site (UTF-8 is recommended)' ) . '

'; +} + get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __('Overview'), @@ -74,11 +83,6 @@ include( './admin-header.php' ); '; - echo '

' . __( 'The character encoding of your site (UTF-8 is recommended)' ) . '

'; -} - if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) add_settings_field( 'blog_charset', __( 'Encoding for pages and feeds' ), 'options_reading_blog_charset', 'reading', 'default', array( 'label_for' => 'blog_charset' ) ); ?>