Changeset 24092 for trunk/wp-admin/includes/screen.php
- Timestamp:
- 04/25/2013 07:28:33 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/screen.php
r24081 r24092 963 963 echo '<input type="checkbox" id="wp_welcome_panel-hide"' . checked( (bool) $welcome_checked, true, false ) . ' />'; 964 964 echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n"; 965 } elseif ( 'post' == $this->base && post_type_supports( $this->post_type, 'post-formats' ) && apply_filters( 'enable_post_format_ui', true, $GLOBALS['post'] ) ) { 966 $user_wants = get_user_option( 'post_formats_' . $this->post_type ); 967 if ( false !== $user_wants ) { 968 // User wants what user gets. 969 $show_post_format_ui = (bool) $user_wants; 970 } else { 971 // UI is shown when the theme supports formats, or if the site has formats assigned to posts. 972 $show_post_format_ui = current_theme_supports( 'post-formats' ) || get_terms( 'post_format', array( 'number' => 1 ) ); 973 } 974 echo '<label for="show_post_format_ui">'; 975 echo '<input type="checkbox" id="show_post_format_ui"' . checked( $show_post_format_ui, true, false ) . ' />'; 976 echo __( 'Post Formats' ) . "</label>\n"; 965 977 } 966 978 ?>
Note: See TracChangeset
for help on using the changeset viewer.