Use update_blog_details() in wpmu_update_blogs_date(). Props jakub.tyrcha. fixes #18122

git-svn-id: https://develop.svn.wordpress.org/trunk@18601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-08-25 18:01:49 +00:00
parent 28851bb6fe
commit 51f1d1adf0
1 changed files with 1 additions and 4 deletions

View File

@ -16,10 +16,7 @@
function wpmu_update_blogs_date() {
global $wpdb;
// TODO: use update_blog_details
$wpdb->update( $wpdb->blogs, array('last_updated' => current_time('mysql', true)), array('blog_id' => $wpdb->blogid) );
refresh_blog_details( $wpdb->blogid );
update_blog_details( $wpdb->blogid, array('last_updated' => current_time('mysql', true)) );
do_action( 'wpmu_blog_updated', $wpdb->blogid );
}