Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#26990 closed enhancement (duplicate)

Adding the "rel" attribute to Toolbar items

Reported by: alphagolf_fr's profile AlphaGolf_fr Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Toolbar Keywords:
Focuses: Cc:

Description

This request is for Toolbar items to support the "rel" attribute, and render it when sent through the add_node function. Could be used for any item that links to a paid part of the site, possibly the backend as well. Would be useful to any plugin/theme that add items to the Toolbar, whether hardcoded or created through the WP NavMenus page, and the optional "Relationship" field at that page.

I've quickly modified the class-wp-admin-bar so it does support this attribute as a metainfo. Sorry it's not a formal patch, I'm currently under Windows and have yet to find how to output the diff of files away from my screen, LOL. This one's based on 3.8.1

Attachments (3)

class-wp-admin-bar.php (14.7 KB) - added by AlphaGolf_fr 11 years ago.
Modified as per above
class-wp-admin-bar.2.php (14.7 KB) - added by AlphaGolf_fr 11 years ago.
Uses metaxfn?
diff-class-wp-admin-bar.php (405 bytes) - added by AlphaGolf_fr 11 years ago.

Download all attachments as: .zip

Change History (5)

@AlphaGolf_fr
11 years ago

Modified as per above

@AlphaGolf_fr
11 years ago

Uses metaxfn?...

#1 @AlphaGolf_fr
11 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #27234.

#2 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review deleted
  • Type changed from feature request to enhancement
Note: See TracTickets for help on using tickets.