- Timestamp:
- 06/22/2020 05:24:34 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php
r47014 r48121 41 41 42 42 if ( isset( $args['meta'] ) ) { 43 // The `$ site_data_whitelist` matches the one used in `wpmu_create_blog()`.44 $ site_data_whitelist= array( 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id' );43 // The `$allowed_data_fields` matches the one used in `wpmu_create_blog()`. 44 $allowed_data_fields = array( 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id' ); 45 45 46 46 foreach ( $args['meta'] as $key => $value ) { 47 // Promote whitelisted keys to top-level arguments, add others to the options array.48 if ( in_array( $key, $ site_data_whitelist, true ) ) {47 // Promote allowed keys to top-level arguments, add others to the options array. 48 if ( in_array( $key, $allowed_data_fields, true ) ) { 49 49 $args[ $key ] = $value; 50 50 } else {
Note: See TracChangeset
for help on using the changeset viewer.