Opened 15 years ago
Closed 15 years ago
#18716 closed defect (bug) (fixed)
Proper check for taxonmies in edit-tags.php
| Reported by: | johnbillion | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Taxonomy | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
15 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
@
15 years ago
- Component Administration → Taxonomy
- Milestone Awaiting Review → 3.3
- Severity minor → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch which fixes the notice, but we might do well to improve the error message for non-existent taxonomies instead.