Make WordPress Core


Ignore:
Timestamp:
08/27/2012 04:22:45 PM (12 years ago)
Author:
ryan
Message:

Use switch_to_blog()/restore_current_blog() in get_blog_post() and get_blog_permalink(). Eliminate the duplicate caching in these functions. Return WP_Post from get_blog_post(). Update phpdoc. Remove global-posts cache invalidation. Props jondavidjohn fixes #21595

File:
1 edited

Legend:

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

    r21601 r21628  
    45184518        }
    45194519    }
    4520 
    4521     if ( is_multisite() )
    4522         wp_cache_delete( $wpdb->blogid . '-' . $post->ID, 'global-posts' );
    45234520}
    45244521
Note: See TracChangeset for help on using the changeset viewer.