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:
parent
82911b1756
commit
802736514b
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue