From 1a91bee772e49735fab2a9352ff3e744f1177f07 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 3 Mar 2014 02:13:07 +0000 Subject: [PATCH] Accept rel attributes in the toolbar's add_node() method. props stephcook22. fixes #27234. git-svn-id: https://develop.svn.wordpress.org/trunk@27367 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-admin-bar.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-admin-bar.php b/src/wp-includes/class-wp-admin-bar.php index 915478e935..86b8a82d1c 100644 --- a/src/wp-includes/class-wp-admin-bar.php +++ b/src/wp-includes/class-wp-admin-bar.php @@ -87,7 +87,7 @@ class WP_Admin_Bar { * - parent - string - The ID of the parent node. Optional. * - href - string - The link for the item. Optional. * - group - boolean - If the node is a group. Optional. Default false. - * - meta - array - Meta data including the following keys: html, class, onclick, target, title, tabindex. + * - meta - array - Meta data including the following keys: html, class, onclick, target, title, tabindex, rel. */ public function add_node( $args ) { // Shim for old method signature: add_node( $parent_id, $menu_obj, $args ) @@ -438,6 +438,9 @@ class WP_Admin_Bar { if ( ! empty( $node->meta['title'] ) ) : ?> title="meta['title'] ); ?>"meta['rel'] ) ) : + ?> rel="meta['rel'] ); ?>">