WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 6 weeks ago

#40200 new enhancement

Introduce WP_Customize_Embed_Control

Reported by: celloexpressions Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.7
Component: Customize Keywords: needs-patch
Focuses: javascript Cc:

Description

Similar to the previously-introduced WP_Customize_Media_Control, WP_Customize_Embed_Control would offer a UI framework for options that store media information. For this control, associated settings would always store the embed URL, whereas the media control stores an associated local attachment ID. This control would be used to add and manage options that use externally-hosted media via oembed. The initial core usage would be for the external header video control, and this would facilitate showing the embed within the customize pane so that you can directly see what the embed is in the pane, similarly to how the media controls show small previews in the pane to complement the full previews in the customize preview.

Change History (1)

#1 @westonruter
6 weeks ago

I think @melchoyce is intending that the current video header controls for internal and external video to be combined into one control, similar to how the video widget control allows you to select a video from the media library or an external video by URL (including oEmbeds).

That being the case, perhaps it would mean the underlying WP_Customize_Media_Control should have a new flag for whether or not it should allow supplying media by URL. The underlying setting would then toggle between an attachment ID and a media URL.

Note: See TracTickets for help on using tickets.