Make WordPress Core

Changeset 42617


Ignore:
Timestamp:
01/30/2018 12:33:03 AM (7 years ago)
Author:
westonruter
Message:

Widgets: Fix Text widget unit test which broke due to global scope not being cleaned.

Amends [42613].
See #42495.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/widgets/text-widget.php

    r42613 r42617  
    3030     * Clean up global scope.
    3131     *
    32      * @global WP_Scripts $wp_scripts
    33      * @global WP_Styles  $wp_style
     32     * @global WP_Scripts           $wp_scripts
     33     * @global WP_Styles            $wp_style
     34     * @global WP_Customize_Manager $wp_customize
    3435     */
    3536    function clean_up_global_scope() {
    36         global $wp_scripts, $wp_styles;
     37        global $wp_scripts, $wp_styles, $wp_customize;
    3738        parent::clean_up_global_scope();
    38         $wp_scripts = null;
    39         $wp_styles  = null;
     39        $wp_scripts   = null;
     40        $wp_styles    = null;
     41        $wp_customize = null;
    4042    }
    4143
Note: See TracChangeset for help on using the changeset viewer.