Changeset 20595
- Timestamp:
- 04/25/2012 08:38:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r20075 r20595 412 412 if ( is_date() ) 413 413 $classes[] = 'date'; 414 if ( is_search() ) 414 if ( is_search() ) { 415 415 $classes[] = 'search'; 416 $classes[] = $wp_query->posts ? 'search-results' : 'search-no-results'; 417 } 416 418 if ( is_paged() ) 417 419 $classes[] = 'paged'; … … 492 494 $classes[] = 'page-template-default'; 493 495 } 494 } elseif ( is_search() ) {495 if ( !empty( $wp_query->posts ) )496 $classes[] = 'search-results';497 else498 $classes[] = 'search-no-results';499 496 } 500 497
Note: See TracChangeset
for help on using the changeset viewer.