WordPress.org

Make WordPress Core

Ticket #18122: 18122.2.patch

File 18122.2.patch, 621 bytes (added by jakub.tyrcha, 4 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