Make WordPress Core


Ignore:
Timestamp:
06/15/2009 12:29:09 AM (15 years ago)
Author:
ryan
Message:

Add missing brackets. Props westonruter. fixes #8446 for 2.8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-includes/post-template.php

    r11450 r11568  
    431431            $classes[] = 'page-parent';
    432432
    433         if ( $wp_query->post->post_parent )
     433        if ( $wp_query->post->post_parent ) {
    434434            $classes[] = 'page-child';
    435435            $classes[] = 'parent-pageid-' . $wp_query->post->post_parent;
    436 
    437         if ( is_page_template() )
     436        }
     437        if ( is_page_template() ) {
    438438            $classes[] = 'page-template';
    439439            $classes[] = 'page-template-' . str_replace( '.php', '-php', get_post_meta( $pageID, '_wp_page_template', true ) );
     440        }
    440441    } elseif ( is_search() ) {
    441442        if ( !empty($wp_query->posts) )
Note: See TracChangeset for help on using the changeset viewer.