[wp-trac] [WordPress Trac] #30615: Flat Taxonomy Terms are identified via their slugs and not their names, when saved from the Post Edit Screen
WordPress Trac
noreply at wordpress.org
Fri Feb 6 20:31:39 UTC 2015
#30615: Flat Taxonomy Terms are identified via their slugs and not their names,
when saved from the Post Edit Screen
-----------------------------------+-----------------------------
Reporter: ArminBraun | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.2
Component: Taxonomy | Version: 4.0
Severity: normal | Resolution: fixed
Keywords: 2nd-opinion has-patch | Focuses: administration
-----------------------------------+-----------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"31359"]:
{{{
#!CommitTicketReference repository="" revision="31359"
Parse non-hierarchical tag input into term IDs before sending to
`wp_insert_post()`.
When editing a post, non-hierarchical taxonomy terms are sent as the
comma-separated list entered into the tax_input metabox. Passing these
values directly to `wp_update_post()` meant that they were interpreted as
term slugs rather than term names, causing mismatches when a typed string
matched the slug of one term and the name of a different term. We fix the
problem by preprocessing tax_input data sent from post.php, converting it
to
unambiguous term_ids before saving.
Props boonebgorges, ArminBraun.
Fixes #30615.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30615#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list