[wp-trac] [WordPress Trac] #24948: wp_delete_term() Shouldn't delete other default terms
WordPress Trac
noreply at wordpress.org
Mon Aug 5 00:26:11 UTC 2013
#24948: wp_delete_term() Shouldn't delete other default terms
-------------------------+-----------------------------
Reporter: ecabuk | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: minor | Keywords: has-patch
-------------------------+-----------------------------
When we create a custom taxonomy with default term, it can be deletable by
wp_delete_term() because it controls only category`s default term to
prevent delete. I think wp_delete_term() should control all taxonomy
default terms, or at least there should be a pre_delete_taxonomy hook to
stop the deletion.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24948>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list