WordPress.org

Make WordPress Core

Changeset 11567


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

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

File:
1 edited

Legend:

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

    r11450 r11567  
    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.