WordPress.org

Make WordPress Core

Ticket #11744: 11744.diff

File 11744.diff, 526 bytes (added by Denis-de-Bernardy, 8 years ago)
  • wp-includes/ms-functions.php

     
    697697
    698698        wp_cache_delete( $wpdb->blogid . '-' . $post_id, 'global-posts' );
    699699}
    700 add_action( 'publish_post', 'clear_global_post_cache' );
     700add_action( 'save_post', 'clear_global_post_cache' );
    701701add_action( 'delete_post', 'clear_global_post_cache' );
    702702
    703703function add_user_to_blog( $blog_id, $user_id, $role ) {