Changeset 41661 for trunk/src/wp-includes/ms-blogs.php
- Timestamp:
- 10/02/2017 01:43:48 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r41625 r41661 13 13 * 14 14 * @since MU (3.0.0) 15 *16 * @global wpdb $wpdb WordPress database abstraction object.17 15 */ 18 16 function wpmu_update_blogs_date() { 19 global $wpdb;20 21 update_blog_details( $ wpdb->blogid, array('last_updated' => current_time('mysql', true)) );17 $site_id = get_current_blog_id(); 18 19 update_blog_details( $site_id, array( 'last_updated' => current_time( 'mysql', true ) ) ); 22 20 /** 23 21 * Fires after the blog details are updated. … … 27 25 * @param int $blog_id Site ID. 28 26 */ 29 do_action( 'wpmu_blog_updated', $ wpdb->blogid );27 do_action( 'wpmu_blog_updated', $site_id ); 30 28 } 31 29
Note: See TracChangeset
for help on using the changeset viewer.