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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-08-25 18:01:49 +00:00
parent 2521eb5f17
commit c7e870877c

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 );
}