From 83a0b00489780c52c94628565d2cc5cb4a20d383 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 3 Mar 2014 02:14:13 +0000 Subject: [PATCH] Accept rel attributes in the toolbar's add_node() method. props stephcook22. fixes #27234. Built from https://develop.svn.wordpress.org/trunk@27367 git-svn-id: http://core.svn.wordpress.org/trunk@27217 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-admin-bar.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index 915478e935..86b8a82d1c 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/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'] ); ?>">