WordPress.org

Make WordPress Core

Changeset 648 in tests


Ignore:
Timestamp:
04/08/12 20:52:05 (2 years ago)
Author:
kurtpayne
Message:

Clearing the global $post object and $_GET array between requests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_admin_includes_ajax_actions.php

    r645 r648  
    9898        parent::tearDown(); 
    9999        $_POST = array(); 
     100        $_GET = array(); 
     101        unset( $GLOBALS['post'] ); 
    100102        remove_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 ); 
    101103        error_reporting( $this->_error_level ); 
Note: See TracChangeset for help on using the changeset viewer.