Ticket #21507: 21507.2.patch
File 21507.2.patch, 1.6 KB (added by , 12 years ago) |
---|
-
wp-admin/options-reading.php
20 20 * 21 21 * @package WordPress 22 22 * @subpackage Reading_Settings_Screen 23 * @since 3.1.0 23 24 */ 24 25 function add_js() { 25 26 ?> … … 41 42 } 42 43 add_action('admin_head', 'add_js'); 43 44 45 /** 46 * Display blog charset option. 47 * 48 * @package WordPress 49 * @subpackage Reading_Settings_Screen 50 * @since 3.5.0 51 */ 52 function options_reading_blog_charset() { 53 echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />'; 54 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>'; 55 } 56 44 57 get_current_screen()->add_help_tab( array( 45 58 'id' => 'overview', 46 59 'title' => __('Overview'), … … 67 80 <?php 68 81 settings_fields( 'reading' ); 69 82 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 83 if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) 76 84 add_settings_field( 'blog_charset', __( 'Encoding for pages and feeds' ), 'options_reading_blog_charset', 'reading' ); 77 85 else