Changeset 11568 for branches/2.8/wp-includes/post-template.php
- Timestamp:
- 06/15/2009 12:29:09 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-includes/post-template.php
r11450 r11568 431 431 $classes[] = 'page-parent'; 432 432 433 if ( $wp_query->post->post_parent ) 433 if ( $wp_query->post->post_parent ) { 434 434 $classes[] = 'page-child'; 435 435 $classes[] = 'parent-pageid-' . $wp_query->post->post_parent; 436 437 if ( is_page_template() ) 436 } 437 if ( is_page_template() ) { 438 438 $classes[] = 'page-template'; 439 439 $classes[] = 'page-template-' . str_replace( '.php', '-php', get_post_meta( $pageID, '_wp_page_template', true ) ); 440 } 440 441 } elseif ( is_search() ) { 441 442 if ( !empty($wp_query->posts) )
Note: See TracChangeset
for help on using the changeset viewer.