Changeset 47014
- Timestamp:
- 12/26/2019 12:25:20 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php
r47013 r47014 17 17 parent::__construct( $factory ); 18 18 $this->default_generation_definitions = array( 19 'domain' => $current_site->domain,20 'path' => new WP_UnitTest_Generator_Sequence( $base . 'testpath%s' ),21 'title' => new WP_UnitTest_Generator_Sequence( 'Site %s' ),22 ' site_id' => $current_site->id,19 'domain' => $current_site->domain, 20 'path' => new WP_UnitTest_Generator_Sequence( $base . 'testpath%s' ), 21 'title' => new WP_UnitTest_Generator_Sequence( 'Site %s' ), 22 'network_id' => $current_site->id, 23 23 ); 24 24 } … … 35 35 36 36 // Map some arguments for backward compatibility with `wpmu_create_blog()` previously used here. 37 if ( ! isset( $args['network_id'] ) &&isset( $args['site_id'] ) ) {37 if ( isset( $args['site_id'] ) ) { 38 38 $args['network_id'] = $args['site_id']; 39 39 unset( $args['site_id'] );
Note: See TracChangeset
for help on using the changeset viewer.