#10773 closed defect (bug) (fixed)
Blank submenu entry created when register_taxonomy arg "label" set to false.
Reported by: | batmoo | Owned by: | dd32 |
---|---|---|---|
Milestone: | 3.0 | Priority: | low |
Severity: | minor | Version: | 2.8.4 |
Component: | Taxonomy | Keywords: | needs-patch |
Focuses: | Cc: |
Description
Setting label as false (as suggested in ##9945) when calling register_taxonomy creates a blank submenu entry under "Posts". The entry has a valid link that goes to a "Tags" page for the registered taxonomy; this page should be accessible.
Sample function call:
register_taxonomy( 'test', 'post', array('hierarchical' => false, 'update_count_callback' => '_update_post_term_count', 'label' => false, 'query_var' =>false, 'rewrite' => false) );
Change needs to be made in wp-admin/menu.php to check if the taxonomy has a valid label entry before creating submenu item.
Attachments (1)
Change History (11)
#5
@
15 years ago
- Cc westi added
- Keywords needs-patch added; has-patch removed
Setting the label to false sounds like a horrid hack here.
I think it would be better to improve the function as you suggested in #9945 to give the code registering the plugin more control.
It would also probably be good to move the defaults for label out to the registration function to make it obvious it can be overloaded.
Do you fancy working up a patch for this?
batmoo: Are you going to supply a patch?