| | 70 | function options_reading_blog_charset() { |
| | 71 | echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />'; |
| | 72 | echo '<p class="description">' . __( 'The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>'; |
| | 73 | } |
| | 74 | |
| | 75 | if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) |
| | 76 | add_settings_field( 'blog_charset', __( 'Encoding for pages and feeds' ), 'options_reading_blog_charset', 'reading' ); |
| | 77 | else |
| | 78 | echo '<input name="blog_charset" type="hidden" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" />'; |
| | 79 | ?> |
| | 80 | |
| 123 | | <?php |
| 124 | | function options_reading_blog_charset() { |
| 125 | | echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />'; |
| 126 | | echo '<p class="description">' . __( 'The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ) |
| 127 | | . '</p>'; |
| 128 | | } |
| 129 | | |
| 130 | | if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) |
| 131 | | add_settings_field( 'blog_charset', __( 'Encoding for pages and feeds' ), 'options_reading_blog_charset', 'reading' ); |
| 132 | | |
| 133 | | do_settings_fields( 'reading', 'default' ); ?> |
| | 135 | <?php do_settings_fields( 'reading', 'default' ); ?> |