Changeset 34022 for trunk/src/wp-admin/options-reading.php
- Timestamp:
- 09/10/2015 09:44:29 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/options-reading.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-reading.php
r32974 r34022 16 16 $parent_file = 'options-general.php'; 17 17 18 /**19 * Display JavaScript on the page.20 *21 * @since 3.5.022 */23 function options_reading_add_js() {24 ?>25 <script type="text/javascript">26 jQuery(document).ready(function($){27 var section = $('#front-static-pages'),28 staticPage = section.find('input:radio[value="page"]'),29 selects = section.find('select'),30 check_disabled = function(){31 selects.prop( 'disabled', ! staticPage.prop('checked') );32 };33 check_disabled();34 section.find('input:radio').change(check_disabled);35 });36 </script>37 <?php38 }39 18 add_action('admin_head', 'options_reading_add_js'); 40 41 /**42 * Render the blog charset setting.43 *44 * @since 3.5.045 */46 function options_reading_blog_charset() {47 echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';48 echo '<p class="description">' . __( 'The <a href="https://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';49 }50 19 51 20 get_current_screen()->add_help_tab( array(
Note: See TracChangeset
for help on using the changeset viewer.