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.


Built from https://develop.svn.wordpress.org/trunk@38850


git-svn-id: http://core.svn.wordpress.org/trunk@38793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2016-10-21 05:28:31 +00:00
parent 82911b1756
commit 802736514b
2 changed files with 4 additions and 8 deletions

View File

@ -13,13 +13,9 @@
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
function twentyseventeen_customize_register( $wp_customize ) {
$postMessage_settings = array( 'blogname', 'blogdescription', 'header_textcolor' );
foreach( $postMessage_settings as $postMessage_setting ) {
$setting = $wp_customize->get_setting( $postMessage_setting );
if ( $setting ) {
$setting->transport = 'postMessage';
}
}
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
/**
* Custom colors.

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38849';
$wp_version = '4.7-alpha-38850';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.