Ticket #8041: 8041.diff
| File 8041.diff, 2.1 KB (added by , 17 years ago) |
|---|
-
classes.php
1168 1168 $css_class .= ' current_page_parent'; 1169 1169 } 1170 1170 1171 $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape(apply_filters('the_title', $page->post_title)) . '">' . apply_filters('the_title', $page->post_title). '</a>';1171 $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape(apply_filters('the_title', $page->post_title)) . '">' . $link_before . apply_filters('the_title', $page->post_title) . $link_after . '</a>'; 1172 1172 1173 1173 if ( !empty($show_date) ) { 1174 1174 if ( 'modified' == $show_date ) -
post-template.php
595 595 'date_format' => get_option('date_format'), 596 596 'child_of' => 0, 'exclude' => '', 597 597 'title_li' => __('Pages'), 'echo' => 1, 598 'authors' => '', 'sort_column' => 'menu_order, post_title' 598 'authors' => '', 'sort_column' => 'menu_order, post_title', 599 'link_before' => '', 'link_after' => '' 599 600 ); 600 601 601 602 $r = wp_parse_args( $args, $defaults ); … … 643 644 * @param array|string $args 644 645 */ 645 646 function wp_page_menu( $args = array() ) { 646 $defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true );647 $defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => ''); 647 648 $args = wp_parse_args( $args, $defaults ); 648 649 $args = apply_filters( 'wp_page_menu_args', $args ); 649 650 … … 658 659 $class = ''; 659 660 if ( is_home() && !is_paged() ) 660 661 $class = 'class="current_page_item"'; 661 $menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $ text. '</a></li>';662 $menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $link_before . $text . $link_after . '</a></li>'; 662 663 } 663 664 664 665 $list_args = $args;