WordPress.org

Make WordPress Core

Ticket #15308: t15308-admin-bar-updates-title-attribute.diff

File t15308-admin-bar-updates-title-attribute.diff, 893 bytes (added by demetris, 10 years ago)

attribute title spanning the whole Updates menu item

  • wp-includes/admin-bar.php

     
    275275
    276276        $update_title = !empty($update_title) ? esc_attr(implode(', ', $update_title)) : '';
    277277
    278         $update_title = sprintf( __('Updates %s'), "<span id='ab-updates' class='count-$update_count' title='$update_title'><span class='update-count'>" . number_format_i18n($update_count) . "</span></span>" );
     278        $update_title = "<span title='$update_title'>";
     279        $update_title .= sprintf( __('Updates %s'), "<span id='ab-updates' class='count-$update_count' class='update-count'>" . number_format_i18n($update_count) . '</span>' );
     280        $update_title .= '</span>';
    279281
    280282        $wp_admin_bar->add_menu( array( 'id' => 'updates', 'title' => $update_title, 'href' => admin_url('update-core.php') ) );
    281283}