Ticket #25341: 25341-post-template.php.diff
File 25341-post-template.php.diff, 840 bytes (added by , 11 years ago) |
---|
-
post-template.php
458 458 } elseif ( is_archive() ) { 459 459 if ( is_post_type_archive() ) { 460 460 $classes[] = 'post-type-archive'; 461 $classes[] = 'post-type-archive-' . sanitize_html_class( get_query_var( 'post_type' ) ); 461 // check for multiple types in array 462 if ( is_array( get_query_var( 'post_type' ) ) ) { 463 foreach ( get_query_var( 'post_type' ) as $type ) { 464 $classes[] = 'post-type-archive-' . sanitize_html_class( $type ); 465 } 466 } else { 467 $classes[] = 'post-type-archive-' . sanitize_html_class( get_query_var( 'post_type' ) ); 468 } 462 469 } else if ( is_author() ) { 463 470 $author = $wp_query->get_queried_object(); 464 471 $classes[] = 'author';