Make WordPress Core

Changeset 40384


Ignore:
Timestamp:
04/06/2017 05:20:08 PM (9 years ago)
Author:
swissspidy
Message:

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.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-includes/class-wp-customize-manager.php

    r40099 r40384  
    39583958                        'description'    => __( 'Or, enter a YouTube URL:' ),
    39593959                        'section'        => 'header_image',
    3960                         'active_callback'=> 'is_front_page',
     3960                        'active_callback' => 'is_header_video_active',
    39613961                ) );
    39623962
Note: See TracChangeset for help on using the changeset viewer.