Pass remaining start_el() arguments to page_css_class. props TheDeadMedic, fixes #17727.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-11-10 18:35:25 +00:00
parent 5869b4d388
commit f88cdc0668
1 changed files with 1 additions and 1 deletions

View File

@ -1042,7 +1042,7 @@ class Walker_Page extends Walker {
$css_class[] = 'current_page_parent'; $css_class[] = 'current_page_parent';
} }
$css_class = implode(' ', apply_filters('page_css_class', $css_class, $page)); $css_class = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) );
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>'; $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';