#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 |
---|---|---|---|
Milestone: | 4.7.4 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Customize | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
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
@
8 years ago
I tried attaching a patch. Let me know if this is the correct way to do things or not.
#2
follow-up:
↓ 3
@
8 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 4.7.4
#3
in reply to:
↑ 2
@
8 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_active
in [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.
8 years ago
#6
@
8 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
@
8 years ago
- Summary changed from WordPress Video Headers to Customize: Video header control fails to use is_header_video_active() for active_callback
#10
@
8 years ago
- Owner set to westonruter
- Resolution set to fixed
- Status changed from new to closed
In 40379:
#11
@
8 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Re-opening for consideration in 4.7.4
Attaching the patch