Changes from branches/2.8/wp-includes/post-template.php at r11643 to trunk/wp-includes/post-template.php at r11450
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r11643 r11450 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 }441 440 } elseif ( is_search() ) { 442 441 if ( !empty($wp_query->posts) ) … … 807 806 */ 808 807 function 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' => ''); 810 809 $args = wp_parse_args( $args, $defaults ); 811 810 $args = apply_filters( 'wp_page_menu_args', $args );
Note: See TracChangeset
for help on using the changeset viewer.