Changeset 40612
- Timestamp:
- 05/10/2017 11:21:43 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r40595 r40612 1376 1376 refresh_blog_details( $blog_id ); 1377 1377 1378 wp_maybe_update_network_site_counts( );1378 wp_maybe_update_network_site_counts( $site_id ); 1379 1379 1380 1380 return $blog_id; -
trunk/tests/phpunit/tests/multisite/network.php
r40611 r40612 586 586 return $is_large_network; 587 587 } 588 589 /** 590 * @ticket 38699 591 */ 592 public function test_wpmu_create_blog_updates_correct_network_site_count() { 593 $original_count = get_blog_count( self::$different_network_id ); 594 595 $site_id = self::factory()->blog->create( array( 596 'domain' => 'example.org', 597 'path' => '/', 598 'site_id' => self::$different_network_id, 599 ) ); 600 601 $result = get_blog_count( self::$different_network_id ); 602 603 wpmu_delete_blog( $site_id, true ); 604 605 $this->assertEquals( $original_count + 1, $result ); 606 } 588 607 } 589 608
Note: See TracChangeset
for help on using the changeset viewer.