[wp-trac] [WordPress Trac] #39815: Format for the default image of WP_Customize_Media_Control and WP_Customize_Cropped_Image_Control

WordPress Trac noreply at wordpress.org
Fri Feb 10 04:43:12 UTC 2017


#39815: Format for the default image of WP_Customize_Media_Control and
WP_Customize_Cropped_Image_Control
--------------------------+------------------------------
 Reporter:  srikat        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  4.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by westonruter):

 @srikat I don't think that it's feasible to supply a default image
 specifically in this way, given that the setting is expecting to model an
 integer attachment ID. The closest thing in core to what you want to do
 here I think is actually something seen in the starter content feature
 added in 4.7, where an image can be loaded into the customized state
 (changeset) and uploaded into the media library as an `attachment` with
 the `auto-draft` status. In this way, the attachment can be used as the
 default value for a given setting, but only after first uploading the
 image into the media library in that transitory state.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39815#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list