Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r11450 r11643  
    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) )
     
    806807 */
    807808function wp_page_menu( $args = array() ) {
    808     $defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
     809    $defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
    809810    $args = wp_parse_args( $args, $defaults );
    810811    $args = apply_filters( 'wp_page_menu_args', $args );
Note: See TracChangeset for help on using the changeset viewer.