Make WordPress Core

Changeset 29267


Ignore:
Timestamp:
07/22/2014 05:21:40 PM (11 years ago)
Author:
wonderboymusic
Message:

After [29251], set the array keys in WP_UnitTestCase::$hooks_saved to prevent notices in 3rd party use cases.

Props danielbachhuber.
Fixes #28986.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r29251 r29267  
    1212    protected $caught_doing_it_wrong = array();
    1313
    14     protected static $hooks_saved = array();
     14    protected static $hooks_saved = array(
     15        'merged_filters' => array(),
     16        'wp_actions' => array(),
     17        'wp_current_filter' => array(),
     18        'wp_filter' => array(),
     19    );
    1520    protected static $ignore_files;
    1621
     
    102107        }
    103108    }
    104    
     109
    105110    function flush_cache() {
    106111        global $wp_object_cache;
Note: See TracChangeset for help on using the changeset viewer.