Fix link_before and after args. Props ev3rywh3re. fixes #8715 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10269 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
44b2c9ab32
commit
b6c647c017
@ -680,7 +680,7 @@ function wp_page_menu( $args = array() ) {
|
||||
$class = '';
|
||||
if ( is_front_page() && !is_paged() )
|
||||
$class = 'class="current_page_item"';
|
||||
$menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $link_before . $text . $link_after . '</a></li>';
|
||||
$menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';
|
||||
// If the front page is a page, add it to the exclude list
|
||||
if (get_option('show_on_front') == 'page') {
|
||||
if ( !empty( $list_args['exclude'] ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user