Opened 13 years ago
Closed 13 years ago
#18716 closed defect (bug) (fixed)
Proper check for taxonmies in edit-tags.php
Reported by: | johnbillion | Owned by: | ryan |
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 3.3 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description
Trying to view the term management screen for a non-existent taxonomy shows a PHP notice before the "Cheatin' uh?" message:
Trying to get property of non-object in /wp-admin/edit-tags.php on line 14
Attachments (2)
Change History (7)
#2
@
13 years ago
Different patch which shows a more descriptive error message. Uses the same string as the post editing screen so it's not a new string.
#3
@
13 years ago
- Component changed from Administration to Taxonomy
- Milestone changed from Awaiting Review to 3.3
- Severity changed from minor to normal
18716.patch will do the same as in edit.php for post types, set a default one and checks if show_ui is true and prevent the notice.
Note: See
TracTickets for help on using
tickets.
Patch which fixes the notice, but we might do well to improve the error message for non-existent taxonomies instead.