Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r11643 r11450  
    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         }
    441440    } elseif ( is_search() ) {
    442441        if ( !empty($wp_query->posts) )
     
    807806 */
    808807function wp_page_menu( $args = array() ) {
    809     $defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
     808    $defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
    810809    $args = wp_parse_args( $args, $defaults );
    811810    $args = apply_filters( 'wp_page_menu_args', $args );
Note: See TracChangeset for help on using the changeset viewer.