Admin Bar: Fix a HTML error introduced in [42128].

Props swissspidy.
See #41057.



git-svn-id: https://develop.svn.wordpress.org/trunk@42129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2017-11-08 08:51:03 +00:00
parent e9282049e8
commit e7d649e621
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ class WP_Admin_Bar {
if ( $has_link ) { if ( $has_link ) {
$attributes = array( 'onclick', 'target', 'title', 'rel', 'lang', 'dir' ); $attributes = array( 'onclick', 'target', 'title', 'rel', 'lang', 'dir' );
echo "<a class='ab-item'$aria_attributes href='" . esc_url( $node->href ) . "'>"; echo "<a class='ab-item'$aria_attributes href='" . esc_url( $node->href ) . "'";
if ( ! empty( $node->meta['onclick'] ) ) { if ( ! empty( $node->meta['onclick'] ) ) {
echo ' onclick="' . esc_js( $node->meta['onclick'] ) . '"'; echo ' onclick="' . esc_js( $node->meta['onclick'] ) . '"';
} }