Make WordPress Core


Ignore:
Timestamp:
10/21/2016 05:27:56 AM (8 years ago)
Author:
pento
Message:

Tests: Prevent Twenty Seventeen from interfering with Customizer tests.

This was previously fixed in [38837], but it wasn't really the correct answer, to fix it in the theme. So, [38837] is reverted in this commit, and the Twenty Seventeen actions causing problems are unhooked before tests are run.

See #38372.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/widgets.php

    r38838 r38850  
    4646        remove_action( 'customize_register', 'twentysixteen_customize_register', 11 );
    4747        remove_action( 'after_setup_theme', 'twentyseventeen_setup' );
     48        remove_action( 'customize_register', 'twentyseventeen_customize_register' );
    4849
    4950        $this->backup_registered_sidebars = $GLOBALS['wp_registered_sidebars'];
Note: See TracChangeset for help on using the changeset viewer.