[wp-trac] [WordPress Trac] #24948: wp_delete_term() Shouldn't delete other default terms
WordPress Trac
noreply at wordpress.org
Mon Aug 5 01:05:38 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 | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by SergeyBiryukov):
Related: #21150.
Indees, unlike `WP_Terms_List_Table::column_name()`, which checks
`'default_' . $taxonomy` option ([source:tags/3.6/wp-admin/includes/class-
wp-terms-list-table.php#L246]), `wp_delete_term()` only checks
`'default_category'` ([15690]).
The patch would make it consistent. Please use tabs rather than spaces for
indentation though (per [http://make.wordpress.org/core/handbook/coding-
standards/php/ WordPress Coding Standards]).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24948#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list