Fix link_before and after args. Props ev3rywh3re. fixes #8715 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bbe5c7f6d1
commit
a0d817dd56
|
@ -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