Make WordPress Core


Ignore:
Timestamp:
09/14/2012 03:23:06 AM (12 years ago)
Author:
nacin
Message:

Avoid the need for a hidden input when suppressing the blog_charset option. fixes #21507.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-reading.php

    r21838 r21842  
    8181
    8282if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) )
    83     add_settings_field( 'blog_charset', __( 'Encoding for pages and feeds' ), 'options_reading_blog_charset', 'reading' );
    84 else
    85     echo '<input name="blog_charset" type="hidden" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" />';
     83    add_settings_field( 'blog_charset', __( 'Encoding for pages and feeds' ), 'options_reading_blog_charset', 'reading', 'default', array( 'label_for' => 'blog_charset' ) );
    8684?>
    8785
Note: See TracChangeset for help on using the changeset viewer.