From 1bf5e510aa54ba1d26df3a564f89c601c0f2808a Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 6 Apr 2017 17:20:08 +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. Merges [40379] to the 4.7 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@40384 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 229a2484ba..e055ae9052 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -3957,7 +3957,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 ) );