WordPress.org

Make WordPress Core

Changeset 15503


Ignore:
Timestamp:
08/18/10 06:50:53 (5 years ago)
Author:
markjaquith
Message:

Do not attempt to clear post cache for post ID 0... that will recursively destroy your server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r15449 r15503  
    40204020    $id = (int) $id; 
    40214021 
     4022    if ( 0 === $id ) 
     4023        return; 
     4024 
    40224025    wp_cache_delete($id, 'posts'); 
    40234026    wp_cache_delete($id, 'post_meta'); 
Note: See TracChangeset for help on using the changeset viewer.