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
This commit is contained in:
Weston Ruter 2017-04-05 23:10:42 +00:00
parent 99b13790c2
commit 5f771393a3
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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.