Changes in trunk/wp-includes/ms-blogs.php [19129:20461]
- File:
-
- 1 edited
-
trunk/wp-includes/ms-blogs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-blogs.php
r19129 r20461 253 253 wp_cache_delete( 'current_blog_' . $details->domain, 'site-options' ); 254 254 wp_cache_delete( 'current_blog_' . $details->domain . $details->path, 'site-options' ); 255 256 do_action( 'refresh_blog_details', $blog_id ); 255 257 } 256 258 … … 710 712 } 711 713 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 */ 721 function _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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)