WordPress.org

Make WordPress Core

Ticket #33030: count-notification-a11y.33030.diff

File count-notification-a11y.33030.diff, 2.8 KB (added by adamsoucie, 4 years ago)
  • src/wp-admin/css/admin-menu.css

    diff --git src/wp-admin/css/admin-menu.css src/wp-admin/css/admin-menu.css
    index 74b922e..d439b4b 100644
    ul#adminmenu > li.current > a.current:after { 
    519519#adminmenu .awaiting-mod,
    520520#adminmenu .update-plugins {
    521521        display: inline-block;
     522        /* Old Version
    522523        background-color: #d54e21;
     524        */
     525        /* New Version */
     526        background-color: #DC3232;
    523527        color: #fff;
     528        /* Old Version
    524529        font-size: 9px;
    525530        line-height: 17px;
     531        */
     532        /* New Version */
     533        font-size: 14px;
     534        line-height: 21px;
     535        line-height: 1.5;
    526536        font-weight: 600;
     537        /* Old Version
    527538        margin: 1px 0 0 2px;
     539        */
     540        /* New Version */
     541        margin: -2px 0 0 4px;
    528542        vertical-align: top;
    529543        -webkit-border-radius: 10px;
    530544        border-radius: 10px;
    ul#adminmenu > li.current > a.current:after { 
    534548#adminmenu li .awaiting-mod span,
    535549#adminmenu li span.update-plugins span {
    536550        display: block;
     551        /* Old version
    537552        padding: 0 6px;
     553        */
     554        /* New Version */
     555        padding: 1px 7px;
    538556}
    539557
    540558#adminmenu li.current a .awaiting-mod,
    541559#adminmenu      li a.wp-has-current-submenu .update-plugins {
     560        /* Old Version
    542561        background-color: #00b9eb;
     562        */
     563        /* New Version */
     564        background-color: #23282D;
    543565        color: #fff;
    544566}
    545567
  • src/wp-admin/menu.php

    diff --git src/wp-admin/menu.php src/wp-admin/menu.php
    index 296f3c0..e3ffbff 100644
    if ( current_user_can( 'edit_posts' ) ) { 
    7373        $awaiting_mod = wp_count_comments();
    7474        $awaiting_mod = $awaiting_mod->moderated;
    7575        $menu[25] = array(
    76                 sprintf( __( 'Comments %s' ), '<span class="awaiting-mod count-' . absint( $awaiting_mod ) . '"><span class="pending-count">' . number_format_i18n( $awaiting_mod ) . '</span></span>' ),
     76                sprintf( __( 'Comments %s' ), '<span class="awaiting-mod count-' . absint( $awaiting_mod ) . '"><span class="pending-count" aria-label="'._x("Number of Pending Comments", "theme editor").'">' . number_format_i18n( $awaiting_mod ) . '</span></span>' ),
    7777                'edit_posts',
    7878                'edit-comments.php',
    7979                '',
    $count = ''; 
    197197if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) {
    198198        if ( ! isset( $update_data ) )
    199199                $update_data = wp_get_update_data();
    200         $count = "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n($update_data['counts']['plugins']) . "</span></span>";
     200        $count = "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count' aria-label='"._x('Number of Plugins Needing Updates', 'theme editor')."'>" . number_format_i18n($update_data['counts']['plugins']) . "</span></span>";
    201201}
    202202
    203203$menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );