[wp-trac] [WordPress Trac] #24948: wp_delete_term() Shouldn't delete other default terms
WordPress Trac
noreply at wordpress.org
Fri Sep 20 21:31:01 UTC 2013
#24948: wp_delete_term() Shouldn't delete other default terms
----------------------------------------+----------------------
Reporter: ecabuk | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 3.1
Severity: minor | Resolution: invalid
Keywords: has-patch needs-unit-tests |
----------------------------------------+----------------------
Changes (by helen):
* keywords: has-patch commit needs-unit-tests => has-patch needs-unit-
tests
* status: new => closed
* resolution: => invalid
* milestone: 3.7 =>
Comment:
Replying to [comment:3 nacin]:
> I didn't know that we supported default terms for other taxonomies.
I don't think we truly do - only categories and link categories get the
special treatment in `wp_insert_post|link()` and other places. The list
table logic just doesn't show the delete link - nothing else actually
prevents it from being deleted, and nothing sets default terms, either. If
you're using default terms for a custom taxonomy right now, you need
custom code to make it actually valuable.
Seems like either we need to say "yes, default terms for taxonomies are
supported" and go whole hog and abstract out the special (link_)category
treatment, or else the list table needs to not mislead. Either way, new
ticket.
Also, related: #21150
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24948#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list