diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index 734a04827d..b7d07214bc 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -434,11 +434,11 @@ class WP_Admin_Bar { if ( $node->type != 'container' || empty( $node->children ) ) return; - ?>
children as $group ) { - $this->_render_group( $group ); - } - ?>
id ) . '" class="ab-group-container">'; + foreach ( $node->children as $group ) { + $this->_render_group( $group ); + } + echo ''; } /** @@ -457,11 +457,11 @@ class WP_Admin_Bar { else $class = ''; - ?>id ) . "'$class>"; + foreach ( $node->children as $item ) { + $this->_render_item( $item ); + } + echo ''; } /** @@ -491,65 +491,46 @@ class WP_Admin_Bar { if ( $menuclass ) $menuclass = ' class="' . esc_attr( trim( $menuclass ) ) . '"'; - ?> + echo "
  • id ) . "'$menuclass>"; -
  • > href="href ) ?>"meta['onclick'] ) ) : - ?> onclick="meta['onclick'] ); ?>"meta['target'] ) ) : - ?> target="meta['target'] ); ?>"meta['title'] ) ) : - ?> title="meta['title'] ); ?>"meta['rel'] ) ) : - ?> rel="meta['rel'] ); ?>"meta['lang'] ) ) : - ?> lang="meta['lang'] ); ?>"meta['dir'] ) ) : - ?> dir="meta['dir'] ); ?>">
    meta['title'] ) ) : - ?> title="meta['title'] ); ?>"meta['lang'] ) ) : - ?> lang="meta['lang'] ); ?>"meta['dir'] ) ) : - ?> dir="meta['dir'] ); ?>">href ) . "'>"; + if ( ! empty( $node->meta['onclick'] ) ) { + echo ' onclick="' . esc_js( $node->meta['onclick'] ) . '"'; + } + } else { + $attributes = array( 'onclick', 'target', 'title', 'rel', 'lang', 'dir' ); + echo '{$node->title}"; - if ( $is_parent ) : - ?>
    children as $group ) { - $this->_render_group( $group ); - } - ?>
    '; + } else { + echo '
    '; + } - if ( ! empty( $node->meta['html'] ) ) - echo $node->meta['html']; + if ( $is_parent ) { + echo '
    '; + foreach ( $node->children as $group ) { + $this->_render_group( $group ); + } + echo '
    '; + } - ?> -
  • meta['html'] ) ) { + echo $node->meta['html']; + } + + echo ''; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 5dfdf3028a..a2a971f7e3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42127'; +$wp_version = '5.0-alpha-42128'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.