From 4c72c19f0e7f1e792d4b8642c90337ff45d57b62 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 5 Apr 2017 23:09:29 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@40379 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 8e2fb7e920..5fb2d76e52 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/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 ) );