[wp-trac] [WordPress Trac] #11166: wp_set_object_terms() Deletes All New Tags
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 17 19:13:17 UTC 2009
#11166: wp_set_object_terms() Deletes All New Tags
--------------------------+-------------------------------------------------
Reporter: miqrogroove | Owner: filosofo
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Taxonomy | Version: 2.8.4
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
Changes (by miqrogroove):
* priority: high => normal
Comment:
Sorry, description was not accurate. The problem is actually caused if
wp_set_object_terms() is called more than one time. It appears
$old_tt_ids is taking a cached value, so if any previous calls to this
function added new tags, they will be deleted on any successive calls.
This is probably unlikely to happen in the wild. One possible trigger is
if someone writes a custom agent that creates new posts by posting values
for both tags_input and tax_input.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11166#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list