Make WordPress Core

Ticket #34895: 34895.patch

File 34895.patch, 576 bytes (added by rachelbaker, 9 years ago)

Concat the $title string to include the screen reader span

  • src/wp-includes/admin-bar.php

     
    696696
    697697        $icon  = '<span class="ab-icon"></span>';
    698698        $title = '<span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-' . $awaiting_mod . '">' . number_format_i18n( $awaiting_mod ) . '</span>';
     699        $title .= '<span class="screen-reader-text">' . $awaiting_title . '</span>';
    699700
    700701        $wp_admin_bar->add_menu( array(
    701702                'id'    => 'comments',