fb4048fcdd
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. git-svn-id: https://develop.svn.wordpress.org/trunk@31359 602fd350-edb4-49c9-b593-d223f7449a82 |
||
---|---|---|
src | ||
tests | ||
tools/i18n | ||
.editorconfig | ||
.gitignore | ||
.jshintrc | ||
.travis.yml | ||
Gruntfile.js | ||
package.json | ||
phpunit.xml.dist | ||
wp-cli.yml | ||
wp-config-sample.php | ||
wp-tests-config-sample.php |