Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r19129 r20461  
    253253        wp_cache_delete( 'current_blog_' . $details->domain, 'site-options' );
    254254        wp_cache_delete( 'current_blog_' . $details->domain . $details->path, 'site-options' );
     255
     256        do_action( 'refresh_blog_details', $blog_id );
    255257}
    256258
    … …  
    710712}
    711713
    712 ?>
     714/**
     715 * Handler for updating the blog date when a published post is deleted.
     716 *
     717 * @since 3.4.0
     718 *
     719 * @param int $post_id Post ID
     720 */
     721function _update_blog_date_on_post_delete( $post_id ) {
     722        $post = get_post( $post_id );
     723
     724        $post_type_obj = get_post_type_object( $post->post_type );
     725        if ( ! $post_type_obj->public )
     726                return;
     727
     728        if ( 'publish' != $post->post_status )
     729                return;
     730
     731        wpmu_update_blogs_date();
     732}
     733
Note: See TracChangeset for help on using the changeset viewer.