- Timestamp:
- 04/30/2021 10:53:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/admin-bar.php
r50556 r50801 132 132 $wp_logo_menu_args = array( 133 133 'id' => 'wp-logo', 134 'title' => '<span class="ab-icon" ></span><span class="screen-reader-text">' . __( 'About WordPress' ) . '</span>',134 'title' => '<span class="ab-icon" aria-hidden="true"></span><span class="screen-reader-text">' . __( 'About WordPress' ) . '</span>', 135 135 'href' => $about_url, 136 136 ); … … 210 210 array( 211 211 'id' => 'menu-toggle', 212 'title' => '<span class="ab-icon" ></span><span class="screen-reader-text">' . __( 'Menu' ) . '</span>',212 'title' => '<span class="ab-icon" aria-hidden="true"></span><span class="screen-reader-text">' . __( 'Menu' ) . '</span>', 213 213 'href' => '#', 214 214 ) … … 880 880 } 881 881 882 $title = '<span class="ab-icon" ></span><span class="ab-label">' . _x( 'New', 'admin bar menu group label' ) . '</span>';882 $title = '<span class="ab-icon" aria-hidden="true"></span><span class="ab-label">' . _x( 'New', 'admin bar menu group label' ) . '</span>'; 883 883 884 884 $wp_admin_bar->add_node( … … 924 924 ); 925 925 926 $icon = '<span class="ab-icon" ></span>';926 $icon = '<span class="ab-icon" aria-hidden="true"></span>'; 927 927 $title = '<span class="ab-label awaiting-mod pending-count count-' . $awaiting_mod . '" aria-hidden="true">' . number_format_i18n( $awaiting_mod ) . '</span>'; 928 928 $title .= '<span class="screen-reader-text comments-in-moderation-text">' . $awaiting_text . '</span>'; … … 1034 1034 } 1035 1035 1036 $title = '<span class="ab-icon"></span><span class="ab-label">' . number_format_i18n( $update_data['counts']['total'] ) . '</span>'; 1037 $title .= '<span class="screen-reader-text">' . $update_data['title'] . '</span>'; 1036 $updates_text = sprintf( 1037 /* translators: %s: Total number of updates available. */ 1038 _n( '%s update available', '%s updates available', $update_data['counts']['total'] ), 1039 number_format_i18n( $update_data['counts']['total'] ) 1040 ); 1041 1042 $icon = '<span class="ab-icon" aria-hidden="true"></span>'; 1043 $title = '<span class="ab-label" aria-hidden="true">' . number_format_i18n( $update_data['counts']['total'] ) . '</span>'; 1044 $title .= '<span class="screen-reader-text updates-available-text">' . $updates_text . '</span>'; 1038 1045 1039 1046 $wp_admin_bar->add_node( 1040 1047 array( 1041 1048 'id' => 'updates', 1042 'title' => $ title,1049 'title' => $icon . $title, 1043 1050 'href' => network_admin_url( 'update-core.php' ), 1044 'meta' => array(1045 'title' => $update_data['title'],1046 ),1047 1051 ) 1048 1052 );
Note: See TracChangeset
for help on using the changeset viewer.