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