[wp-trac] [WordPress Trac] #33940: Double spaces in term names can cause problems
WordPress Trac
noreply at wordpress.org
Wed May 20 08:37:48 UTC 2026
#33940: Double spaces in term names can cause problems
--------------------------+------------------------------
Reporter: smerriman | Owner: (none)
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by shreya0shrivastava):
Tested on WordPress 7.1-alpha-62161-src — this bug no longer reproduces.
**Reproduction steps taken:**
1. Created a `post_tag` term `test term` (single space) via
`wp_insert_term()`
2. Loaded all IXR dependencies via `glob( ABSPATH . 'wp-includes/IXR
/class-IXR-*.php' )`
3. Instantiated `wp_xmlrpc_server` directly
4. Called `wp_newPost()` with `terms_names => [ 'post_tag' => ['test
term'] ]` (double space)
Post was created successfully with a post ID returned — no `A term with
the name already exists` error thrown.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33940#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list