mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Fix link_before and after args. Props ev3rywh3re. fixes #8715 for 2.7
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
77ab18f590
commit
8696b890ff
@ -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