[wp-trac] [WordPress Trac] #32248: adding a term containing "&" and renamed
WordPress Trac
noreply at wordpress.org
Sat Jul 4 04:21:00 UTC 2015
#32248: adding a term containing "&" and renamed
----------------------------+-----------------------------
Reporter: olivM | Owner: boonebgorges
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.3
Component: Administration | Version: 4.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
----------------------------+-----------------------------
Comment (by matthewmi11er):
I think the change to '''get_terms()''' fixes the error in the specific
circumstances. However what may be happening (if I'm tracing everything
properly) is that '''wp_set_post_terms()''' is called twice when updating
the post. The first time the term name is passed to it, which fails to
update the tags properly. The second time the term_id is passed which
succeeds.
Moving this to a new issue may make sense (I'd be fine with that). I don't
have a specific demonstration but I think it will show up anywhere
'''wp_set_object_terms()''' gets called with the term name (instead of
terrm_id) and the term name has an ampersand and the slug has been
modified.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32248#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list