Make WordPress Core


Ignore:
Timestamp:
02/13/2015 08:19:09 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Toolbar: Remove title attributes from 'About WordPress', 'Add New', and 'My Account' items.

props afercia.
fixes #31324.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r31455 r31456  
    101101    $wp_admin_bar->add_menu( array(
    102102        'id'    => 'wp-logo',
    103         'title' => '<span class="ab-icon"></span>',
     103        'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'About WordPress' ) . '</span>',
    104104        'href'  => self_admin_url( 'about.php' ),
    105         'meta'  => array(
    106             'title' => __('About WordPress'),
    107         ),
    108105    ) );
    109106
     
    114111            'id'     => 'about',
    115112            'title'  => __('About WordPress'),
    116             'href'  => self_admin_url( 'about.php' ),
     113            'href'   => self_admin_url( 'about.php' ),
    117114        ) );
    118115    }
     
    194191        'meta'      => array(
    195192            'class'     => $class,
    196             'title'     => __('My Account'),
    197193        ),
    198194    ) );
     
    605601        'title' => $title,
    606602        'href'  => admin_url( current( array_keys( $actions ) ) ),
    607         'meta'  => array(
    608             'title' => _x( 'Add New', 'admin bar menu group label' ),
    609         ),
    610603    ) );
    611604
Note: See TracChangeset for help on using the changeset viewer.