WordPress.org

Make WordPress Core

Changeset 673 in tests


Ignore:
Timestamp:
04/12/12 14:48:06 (2 years ago)
Author:
nacin
Message:

Allow the creation of new users during importing to non-super admins. Fixes two failures when running the suite under -m.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_import_wp.php

    r494 r673  
    209209            define( 'WP_LOAD_IMPORTERS', true ); 
    210210 
     211        add_filter( 'import_allow_create_users', '__return_true' ); 
    211212        require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php'; 
    212213 
     
    220221        parent::tearDown(); 
    221222 
     223        remove_filter( 'import_allow_create_users', '__return_true' ); 
    222224        $this->_delete_all_posts(); 
    223225 
Note: See TracChangeset for help on using the changeset viewer.