From a6a8321d7de3527c5c6d77aec46cef3be9317667 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 2 Nov 2012 16:13:53 +0000 Subject: [PATCH] clean_post_cache() no longer calls itself recursively. see #11399. git-svn-id: https://develop.svn.wordpress.org/trunk@22357 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 48 +++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 7c2020df55..024afbdd0c 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -429,139 +429,139 @@ final class WP_Post { /** * * @var int - */ + */ public $post_author = 0; /** * * @var string - */ + */ public $post_date = '0000-00-00 00:00:00'; /** * * @var string - */ + */ public $post_date_gmt = '0000-00-00 00:00:00'; /** * * @var string - */ + */ public $post_content = ''; /** * * @var string - */ + */ public $post_title = ''; /** * * @var string - */ + */ public $post_excerpt = ''; /** * * @var string - */ + */ public $post_status = 'publish'; /** * * @var string - */ + */ public $comment_status = 'open'; /** * * @var string - */ + */ public $ping_status = 'open'; /** * * @var string - */ + */ public $post_password = ''; /** * * @var string - */ + */ public $post_name = ''; /** * * @var string - */ + */ public $to_ping = ''; /** * * @var string - */ + */ public $pinged = ''; /** * * @var string - */ + */ public $post_modified = '0000-00-00 00:00:00'; /** * * @var string - */ + */ public $post_modified_gmt = '0000-00-00 00:00:00'; /** * * @var string - */ + */ public $post_content_filtered = ''; /** * * @var int - */ + */ public $post_parent = 0; /** * * @var string - */ + */ public $guid = ''; /** * * @var int - */ + */ public $menu_order = 0; /** * * @var string - */ + */ public $post_type = 'post'; /** * * @var string - */ + */ public $post_mime_type = ''; /** * * @var int - */ + */ public $comment_count = 0; /** * * @var string - */ + */ public $filter; public static function get_instance( $post_id ) { @@ -4587,8 +4587,6 @@ function update_post_cache( &$posts ) { * Cleaning means delete from the cache of the post. Will call to clean the term * object cache associated with the post ID. * - * clean_post_cache() will call itself recursively for each child post. - * * This function not run if $_wp_suspend_cache_invalidation is not empty. See * wp_suspend_cache_invalidation(). *