From 249e32e96ba93df2801e6e0dcb41da90a11508ff Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 7 Aug 2012 03:10:59 +0000 Subject: [PATCH] Hide the charset setting for installs that have a charset of UTF-8 already. fixes #21507. git-svn-id: https://develop.svn.wordpress.org/trunk@21467 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/options-reading.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index 28897c18d0..d1ff70f9f9 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -120,12 +120,17 @@ else : - - - -

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

- - +'; + 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' ); + +do_settings_fields( 'reading', 'default' ); ?>