Changeset 10115 for trunk/wp-includes/post-template.php
- Timestamp:
- 12/07/2008 12:14:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r10114 r10115 450 450 $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">'; 451 451 } 452 452 453 453 } 454 454 $output .= $link_before; … … 670 670 $menu = ''; 671 671 672 $list_args = $args; 673 672 674 // Show Home in the menu 673 675 if ( isset($args['show_home']) && ! empty($args['show_home']) ) { … … 677 679 $text = $args['show_home']; 678 680 $class = ''; 679 if ( is_ home() && !is_paged() )681 if ( is_front_page() && !is_paged() ) 680 682 $class = 'class="current_page_item"'; 681 683 $menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $link_before . $text . $link_after . '</a></li>'; 682 } 683 684 $list_args = $args; 684 // If the front page is a page, add it to the exclude list 685 if (get_option('show_on_front') == 'page') { 686 if ( !empty( $list_args['exclude'] ) ) { 687 $list_args['exclude'] .= ','; 688 } else { 689 $list_args['exclude'] = ''; 690 } 691 $list_args['exclude'] = get_option('page_on_front'); 692 } 693 } 694 685 695 $list_args['echo'] = false; 686 696 $list_args['title_li'] = '';
Note: See TracChangeset
for help on using the changeset viewer.