Files
WordPress/wp-includes
Boone Gorges 3ceee6cd24 Improve 'alias_of' handling in wp_insert_term() and wp_update_term().
Using get_term_by() rather than direct SQL queries to fetch the alias term
fixes a number of issues:

* Object cache for aliased term is properly cleared after update.
* If the aliased term is in the object cache, it's served from there, saving a database query.
* Duplicate 'edit_terms' and 'edited_terms' hooks can be removed.
* Fix a PHP notice when the 'alias_of' term is not found.
* Prevent the incorrect creation of a new term group for the primary term when the 'alias_of' term is not found.

Adds unit tests for 'alias_of' functionality in both functions.

Fixes #29848.
Built from https://develop.svn.wordpress.org/trunk@29862


git-svn-id: http://core.svn.wordpress.org/trunk@29622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-09 02:32:19 +00:00
..
2014-09-11 19:07:17 +00:00
2014-03-27 22:41:14 +00:00
2014-10-07 15:28:24 +00:00
2014-08-09 19:30:17 +00:00
2014-08-09 19:30:17 +00:00
2014-06-10 00:30:15 +00:00
2014-09-29 04:07:15 +00:00
2014-09-12 05:51:17 +00:00
2014-03-26 18:43:14 +00:00
2014-10-07 15:28:24 +00:00
2014-09-29 04:07:15 +00:00
2013-10-30 14:39:10 +00:00
2014-07-09 18:07:16 +00:00