Changeset 23843 for trunk/wp-admin/includes/screen.php
- Timestamp:
- 03/29/2013 03:35:41 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/screen.php
r23658 r23843 143 143 * @since 3.2.0 144 144 * 145 * @global $post_ID 145 146 * @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object) 146 147 * which it uses to determine an icon HTML ID. Or, if a string is provided, it is used to form the icon HTML ID. … … 148 149 */ 149 150 function get_screen_icon( $screen = '' ) { 151 global $post_ID; 150 152 if ( empty( $screen ) ) 151 153 $screen = get_current_screen(); … … 166 168 if ( $screen->post_type ) 167 169 $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $screen->post_type ); 170 171 if ( $post_ID ) { 172 $format = get_post_format( $post_ID ); 173 if ( $format ) 174 $class .= ' ' . $format; 175 } 168 176 } 169 177
Note: See TracChangeset
for help on using the changeset viewer.