#27234 closed enhancement (fixed)
Adding filters for WP_Admin_Bar::add_node() method
Reported by: | arpit.tambi.in | Owned by: | stephcook22 |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.3 |
Component: | Toolbar | Keywords: | good-first-bug has-patch commit |
Focuses: | Cc: |
Description
I needed to add a rel="nofollow" attribute to one of the links on toolbar but couldn't as there is no filter to let me change default toolbar behavior.
I ended up modifying source code at line 435 https://core.trac.wordpress.org/browser/tags/3.8.1/src/wp-includes/class-wp-admin-bar.php#L435
Attachments (2)
Change History (10)
#1
@
11 years ago
- Focuses template removed
- Keywords needs-patch good-first-bug added
- Milestone changed from Awaiting Review to Future Release
- Version changed from 3.8.1 to 3.3
#2
@
11 years ago
- Summary changed from Adding filters for Wordpress Toolbar add_node method to Adding filters for WP_Admin_Bar::add_node() method
#5
@
11 years ago
Please use tabs rather than spaces for indentation (per WordPress Coding Standards).
#6
@
11 years ago
- Keywords commit added
- Milestone changed from Future Release to 3.9
27234-2.diff appears to be in order.
Note: See
TracTickets for help on using
tickets.
Seems like a reasonable request. I'd recommend making it a new supported value for the
meta
argument when adding a node.