Make WordPress Core

Ticket #24502: 24502.patch

File 24502.patch, 744 bytes (added by ocean90, 12 years ago)
  • wp-admin/includes/screen.php

     
    166166
    167167                if ( $screen->post_type )
    168168                        $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                 }
    178169        }
    179170
    180171        return '<div id="icon-' . esc_attr( $icon_id ) . '" class="' . $class . '"><br /></div>';