[wp-trac] [WordPress Trac] #54147: XMLRPC API ignores empty terms_names array
WordPress Trac
noreply at wordpress.org
Mon Sep 20 17:46:31 UTC 2021
#54147: XMLRPC API ignores empty terms_names array
--------------------------+-----------------------------
Reporter: redsweater | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
There is a bug in the XMLRPC API that causes API clients who use the
terms_names field to set tags or other terms to be unable to completely
remove tags from a post using this API.
I'm attaching a patch that addresses the problem by ensuring that if there
is an input entry for terms_names on a given taxonomy, that at least an
empty array is established as the updated terms property for the updated
post.
I'll add a unit test update to this ticket soon.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54147>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list