#40308 closed defect (bug) (fixed)
Customize: Video header control fails to use is_header_video_active() for active_callback
| Reported by: | pratikshrestha | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7.4 |
| Component: | Customize | Version: | 4.7 |
| Severity: | normal | Keywords: | has-patch commit fixed-major |
| Cc: | Focuses: |
Description
Video Header control external_header_video, should have active_callback is_header_video_active, instead of is_front_page.
If a dev tries to filter the front page restriction for Video Headers, then the Video Media control is hidden but external_header_video is still shown.
Attachments (1)
Change History (14)
#1
@
10 years ago
I tried attaching a patch. Let me know if this is the correct way to do things or not.
#3
in reply to: ↑ 2
@
10 years ago
Replying to SergeyBiryukov:
Hi @pratikshrestha, welcome to WordPress Trac! Thanks for the report.
'active_callback' => 'is_front_page'was added in [39237] and replaced withis_header_video_activein [39240], but it looks like the second instance was missed, so the patch looks good to me.
Great. Glad I could contribute something. :)
This ticket was mentioned in Slack in #core by swissspidy. View the logs.
10 years ago
#6
@
10 years ago
I confirmed that the external video header control now appears as expected when using a custom active callback, so this looks good to me as well. Good catch, @pratikshrestha.
#8
@
10 years ago
- Summary WordPress Video Headers → Customize: Video header control fails to use is_header_video_active() for active_callback
#11
@
10 years ago
- Keywords fixed-major added
- Resolution fixed
- Status closed → reopened
Re-opening for consideration in 4.7.4
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Attaching the patch