Make WordPress Core

Ticket #26562: 26562.refresh.patch

File 26562.refresh.patch, 575 bytes (added by sabernhardt, 5 years ago)

refresh: still using former title attribute as aria-label

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

     
    551551
    552552                        if ( 'onclick' === $attribute ) {
    553553                                echo " $attribute='" . esc_js( $node->meta[ $attribute ] ) . "'";
     554                        } elseif ( 'title' === $attribute ) {
     555                                echo " aria-label='" . esc_attr( $node->meta[ $attribute ] ) . "'";
    554556                        } else {
    555557                                echo " $attribute='" . esc_attr( $node->meta[ $attribute ] ) . "'";
    556558                        }