Index: src/wp-includes/class-wp-admin-bar.php =================================================================== --- src/wp-includes/class-wp-admin-bar.php (revision 51304) +++ src/wp-includes/class-wp-admin-bar.php (working copy) @@ -108,7 +108,11 @@ * * @since 3.1.0 * @since 4.5.0 Added the ability to pass 'lang' and 'dir' meta data. + * @since x.x.x Added the ability to pass most HTML attributes as meta data. + * @since x.x.x Added `aria-current` attribute. * + * @global string $pagenow + * * @param array $args { * Arguments for adding a node. * @@ -117,8 +121,13 @@ * @type string $parent Optional. ID of the parent node. * @type string $href Optional. Link for the item. * @type bool $group Optional. Whether or not the node is a group. Default false. - * @type array $meta Meta data including the following keys: 'html', 'class', 'rel', 'lang', 'dir', - * 'onclick', 'target', 'title', 'tabindex'. Default empty. + * @type array $meta Optional. Meta data for the node. + * Add HTML attributes to the item, such as + * 'rel', 'lang', 'dir', 'onclick', 'target', 'title', 'tabindex'. + * Reserved attributes include 'href', 'aria-haspopup', 'aria-current'. + * Use 'html' to append arbitrary HTML content within the node. + * Use 'class' to apply classes to the node element. + * Default empty. * } */ public function add_node( $args ) { @@ -537,23 +546,29 @@ echo "