Ticket #24502: 24502.patch
File 24502.patch, 744 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/screen.php
166 166 167 167 if ( $screen->post_type ) 168 168 $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $screen->post_type ); 169 170 if ( 'post' == $screen->id ) {171 $post_format = get_post_format();172 if ( ! $post_format && ! empty( $_REQUEST['format'] ) && in_array( $_REQUEST['format'], get_post_format_slugs() ) )173 $post_format = $_REQUEST['format'];174 175 if ( $post_format )176 $class .= ' wp-format-' . $post_format;177 }178 169 } 179 170 180 171 return '<div id="icon-' . esc_attr( $icon_id ) . '" class="' . $class . '"><br /></div>';