Call clean_post_cache() in wp_insert_post() after the manual query to change GUID. Remove the second call to clean_post_cache() previously done on the save_post hook. see #11399.

git-svn-id: https://develop.svn.wordpress.org/trunk@21943 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2012-09-21 18:52:15 +00:00
parent 35688ccb89
commit 2e6cb465b2
3 changed files with 10 additions and 16 deletions

View File

@@ -3244,3 +3244,11 @@ function user_pass_ok($user_login, $user_pass) {
return true;
}
/**
* Callback formerly fired on the save_post hook. No longer needed.
*
* @since 2.3.0
* @deprecated 3.5.0
*/
function _save_post_hook() {}