[wp-trac] [WordPress Trac] #37205: Shared term's edit screen is inaccessible
WordPress Trac
noreply at wordpress.org
Mon Jun 27 22:25:59 UTC 2016
#37205: Shared term's edit screen is inaccessible
----------------------------+-----------------------------
Reporter: dlh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.5
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
`term.php` populates `$tag` by calling `get_term()` without a `$taxonomy`.
If the term ID being edited is still shared, then that `get_term()` call
will return an `'ambiguous_term_id'` error, which leads to `wp_die()`.
Per ticket:34988#comment:10, `term.php` assumes there are no shared terms,
so this might be an invalid report. I can understand if, by this point,
core considers shared terms to be edge cases at most.
Technically, the error message ("You attempted to edit an item that
doesn't exist") is also inaccurate. I can't think of a user-friendly
description for it, though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37205>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list