mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Do not attempt to clear post cache for post ID 0... that will recursively destroy your server
git-svn-id: https://develop.svn.wordpress.org/trunk@15503 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4019,6 +4019,9 @@ function clean_post_cache($id) {
|
||||
|
||||
$id = (int) $id;
|
||||
|
||||
if ( 0 === $id )
|
||||
return;
|
||||
|
||||
wp_cache_delete($id, 'posts');
|
||||
wp_cache_delete($id, 'post_meta');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user