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
This commit is contained in:
Pascal Birchler 2017-04-06 17:20:08 +00:00
parent 8aed649adf
commit 1bf5e510aa
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) );