diff --git a/src/wp-includes/class-wp-admin-bar.php b/src/wp-includes/class-wp-admin-bar.php index f40210085e..2fa31352a0 100644 --- a/src/wp-includes/class-wp-admin-bar.php +++ b/src/wp-includes/class-wp-admin-bar.php @@ -98,6 +98,8 @@ class WP_Admin_Bar { /** * Add a node to the menu. * + * @since 4.5.0 Added the ability to pass 'lang' and 'dir' meta data. + * * @param array $args { * Arguments for adding a node. * @@ -106,7 +108,7 @@ class WP_Admin_Bar { * @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', + * @type array $meta Meta data including the following keys: 'html', 'class', 'rel', 'lang', 'dir', * 'onclick', 'target', 'title', 'tabindex'. Default empty. * } */ @@ -506,12 +508,24 @@ class WP_Admin_Bar { if ( ! empty( $node->meta['rel'] ) ) : ?> rel="meta['rel'] ); ?>"meta['lang'] ) ) : + ?> lang="meta['lang'] ); ?>"meta['dir'] ) ) : + ?> dir="meta['dir'] ); ?>">