WordPress.org

Make WordPress Core

Ticket #18122: 18122.patch

File 18122.patch, 619 bytes (added by jakub.tyrcha, 7 years ago)
  • wp-includes/ms-blogs.php

     
    1616function wpmu_update_blogs_date() {
    1717        global $wpdb;
    1818
    19         // TODO: use update_blog_details
     19        update_blog_details( $wpdb->blogid, array('last_updated' => current_time('mysql', true));
    2020
    21         $wpdb->update( $wpdb->blogs, array('last_updated' => current_time('mysql', true)), array('blog_id' => $wpdb->blogid) );
    22         refresh_blog_details( $wpdb->blogid );
    23 
    2421        do_action( 'wpmu_blog_updated', $wpdb->blogid );
    2522}
    2623