From 853acee460a8a11c7c80feae36a599b2c78320f6 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Fri, 2 Dec 2016 05:57:43 +0000 Subject: [PATCH] Twenty Seventeen: Hide front section panels on page load of Customizer. Props sstoqnov. Fixes #38951. Built from https://develop.svn.wordpress.org/trunk@39417 git-svn-id: http://core.svn.wordpress.org/trunk@39357 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentyseventeen/assets/js/customize-preview.js | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyseventeen/assets/js/customize-preview.js b/wp-content/themes/twentyseventeen/assets/js/customize-preview.js index 11c9ed46ae..e5d4ee16d7 100644 --- a/wp-content/themes/twentyseventeen/assets/js/customize-preview.js +++ b/wp-content/themes/twentyseventeen/assets/js/customize-preview.js @@ -8,6 +8,10 @@ // Collect information from customize-controls.js about which panels are opening. wp.customize.bind( 'preview-ready', function() { + + // Initially hide the theme option placeholders on load + $( '.panel-placeholder' ).hide(); + wp.customize.preview.bind( 'section-highlight', function( data ) { // Only on the front page. diff --git a/wp-includes/version.php b/wp-includes/version.php index ff366f0ceb..7d9ef36de1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39415'; +$wp_version = '4.8-alpha-39417'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.