Make WordPress Core


Ignore:
Timestamp:
01/19/2010 07:45:44 PM (16 years ago)
Author:
ryan
Message:

Merge clear_global_post_cache() into clean_post_cache(). fixes #11744

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r12760 r12768  
    662662}
    663663
     664// deprecated, see clean_post_cache()
    664665function clear_global_post_cache( $post_id ) {
    665     global $wpdb;
    666 
    667     wp_cache_delete( $wpdb->blogid . '-' . $post_id, 'global-posts' );
    668 }
    669 add_action( 'publish_post', 'clear_global_post_cache' );
    670 add_action( 'delete_post', 'clear_global_post_cache' );
     666    return;
     667}
    671668
    672669function add_user_to_blog( $blog_id, $user_id, $role ) {
Note: See TracChangeset for help on using the changeset viewer.