mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 12:50:18 +01:00
Add a title to the Home link output by wp_page_menu(). Fixes #10594 props amilanov.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
939f882ff9
commit
7fc17ec0bd
@ -828,7 +828,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') . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';
|
||||
$menu .= '<li ' . $class . '><a href="' . get_option('home') . '" title="' . esc_attr($text) . '">' . $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