Changeset 36093
- Timestamp:
- 12/26/2015 01:39:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/admin-bar.php
r35875 r36093 693 693 $awaiting_mod = wp_count_comments(); 694 694 $awaiting_mod = $awaiting_mod->moderated; 695 $awaiting_t itle = esc_attr( sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod )) );695 $awaiting_text = sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) ); 696 696 697 697 $icon = '<span class="ab-icon"></span>'; 698 $title = '<span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-' . $awaiting_mod . '">' . number_format_i18n( $awaiting_mod ) . '</span>'; 698 $title = '<span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-' . $awaiting_mod . '" aria-hidden="true">' . number_format_i18n( $awaiting_mod ) . '</span>'; 699 $title .= '<span class="screen-reader-text">' . $awaiting_text . '</span>'; 699 700 700 701 $wp_admin_bar->add_menu( array( … … 702 703 'title' => $icon . $title, 703 704 'href' => admin_url('edit-comments.php'), 704 'meta' => array( 'title' => $awaiting_title ),705 705 ) ); 706 706 }
Note: See TracChangeset
for help on using the changeset viewer.