From 5f771393a318d333503d5e13525dfcd543819302 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 5 Apr 2017 23:10:42 +0000 Subject: [PATCH] Customize: Use `is_header_video_active()` as `active_callback` for `external_header_video` control instead of `is_front_page()`. Use the same `active_callback` as was supplied previously for the `header_video` control in [39240] where this instance was missed. Amends [39240]. Props pratikshrestha. See #38738. Fixes #40308. Built from https://develop.svn.wordpress.org/trunk@40379 git-svn-id: http://core.svn.wordpress.org/trunk@40286 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-manager.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 8e2fb7e920..5fb2d76e52 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -3959,7 +3959,7 @@ final class WP_Customize_Manager { 'type' => 'url', 'description' => __( 'Or, enter a YouTube URL:' ), 'section' => 'header_image', - 'active_callback'=> 'is_front_page', + 'active_callback' => 'is_header_video_active', ) ); $this->add_control( new WP_Customize_Header_Image_Control( $this ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index efb487c8de..d1af5448b2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40378'; +$wp_version = '4.8-alpha-40379'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.