Make WordPress Core

Changeset 12013


Ignore:
Timestamp:
10/08/2009 09:37:26 PM (15 years ago)
Author:
westi
Message:

Add a title to the Home link output by wp_page_menu(). Fixes #10594 props amilanov.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r11990 r12013  
    829829        if ( is_front_page() && !is_paged() )
    830830            $class = 'class="current_page_item"';
    831         $menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';
     831        $menu .= '<li ' . $class . '><a href="' . get_option('home') . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';
    832832        // If the front page is a page, add it to the exclude list
    833833        if (get_option('show_on_front') == 'page') {
Note: See TracChangeset for help on using the changeset viewer.