[wp-trac] [WordPress Trac] #20595: Collapsible Admin menu fails if items are added by code
WordPress Trac
noreply at wordpress.org
Sun Aug 25 18:39:01 UTC 2013
#20595: Collapsible Admin menu fails if items are added by code
----------------------------+----------------------
Reporter: digitaldonkey | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Administration | Version: 3.3.1
Severity: normal | Resolution: invalid
Keywords: dev-feedback |
----------------------------+----------------------
Changes (by DrewAPicture):
* keywords: dev-feedback reporter-feedback => dev-feedback
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Adding a menu link in this way is not supported by the admin menu API. And
printing a `$_GLOBAL` value via an href probably isn't advisable either.
Regardless, I'd suggest maybe adding a toolbar link instead where you can
specify the href destination you need. Take a look at
[http://core.trac.wordpress.org/browser/branches/3.6/wp-includes/class-wp-
admin-bar.php#L72 `WP_Admin_Bar->add_menu|add_node()`].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20595#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list