Ticket #40035: 40035.2.diff
| File 40035.2.diff, 1.4 KB (added by , 9 years ago) |
|---|
-
src/wp-includes/ms-functions.php
1368 1368 $path = trailingslashit($path); 1369 1369 $site_id = (int) $site_id; 1370 1370 1371 $result = $wpdb->insert( $wpdb->blogs, array('site_id' => $site_id, 'domain' => $domain, 'path' => $path, 'registered' => current_time( 'mysql')) );1371 $result = $wpdb->insert( $wpdb->blogs, array('site_id' => $site_id, 'domain' => $domain, 'path' => $path, 'registered' => current_time( 'mysql', true ) ) ); 1372 1372 if ( ! $result ) 1373 1373 return false; 1374 1374 -
tests/phpunit/tests/multisite/site.php
886 886 } 887 887 888 888 /** 889 * Test that last updated and registered dates are nearly identical. 890 * 891 * See 41064 & 40035 892 * 893 * @ticket 40035 894 */ 895 function test_new_blog_last_updated_registered_nearly_identical() { 896 $blog = self::factory()->blog->create_and_get(); 897 898 $registered = date( 'U', strtotime( $blog->registered ) ); 899 $last_updated = date( 'U', strtotime( $blog->last_updated ) ); 900 901 $this->assertLessThanOrEqual( 10, ( $last_updated - $registered ) ); 902 } 903 904 /** 889 905 * @ticket 33620 890 906 * @dataProvider data_new_blog_url_schemes 891 907 */
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)