Changeset 21872
- Timestamp:
- 09/16/2012 06:33:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-reading.php
r21856 r21872 19 19 * Display JavaScript on the page. 20 20 * 21 * @package WordPress 22 * @subpackage Reading_Settings_Screen 21 * @since 3.5.0 23 22 */ 24 23 function options_reading_add_js() { … … 41 40 } 42 41 add_action('admin_head', 'options_reading_add_js'); 42 43 /** 44 * Render the blog charset setting. 45 * 46 * @since 3.5.0 47 */ 48 function options_reading_blog_charset() { 49 echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />'; 50 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>'; 51 } 43 52 44 53 get_current_screen()->add_help_tab( array( … … 74 83 <?php 75 84 settings_fields( 'reading' ); 76 77 function options_reading_blog_charset() {78 echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';79 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>';80 }81 85 82 86 if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) )
Note: See TracChangeset
for help on using the changeset viewer.