Go to file
Boone Gorges fb4048fcdd 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@31359 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-06 20:31:37 +00:00
src Parse non-hierarchical tag input into term IDs before sending to wp_insert_post(). 2015-02-06 20:31:37 +00:00
tests Parse non-hierarchical tag input into term IDs before sending to wp_insert_post(). 2015-02-06 20:31:37 +00:00
tools/i18n i18n tools: Sync makepot.php with i18n.svn. 2015-01-31 22:01:33 +00:00
.editorconfig
.gitignore
.jshintrc
.travis.yml Travis hates tabs. 2015-02-06 05:57:54 +00:00
Gruntfile.js Use minified jquery-ui-core file during qunit:compiled Grunt task. 2015-02-05 20:35:02 +00:00
package.json Update version numbers in trunk. 2014-12-17 17:37:16 +00:00
phpunit.xml.dist Exclude external-http tests when running phpunit. 2014-11-10 14:48:28 +00:00
wp-cli.yml
wp-config-sample.php
wp-tests-config-sample.php