Make WordPress Core

Ticket #25341: 25341.diff

File 25341.diff, 686 bytes (added by SergeyBiryukov, 11 years ago)
  • src/wp-includes/post-template.php

     
    458458        } elseif ( is_archive() ) {
    459459                if ( is_post_type_archive() ) {
    460460                        $classes[] = 'post-type-archive';
    461                         $classes[] = 'post-type-archive-' . sanitize_html_class( get_query_var( 'post_type' ) );
     461                        foreach ( (array) get_query_var( 'post_type' ) as $post_type )
     462                                $classes[] = 'post-type-archive-' . sanitize_html_class( $post_type );
    462463                } else if ( is_author() ) {
    463464                        $author = $wp_query->get_queried_object();
    464465                        $classes[] = 'author';