[wp-trac] [WordPress Trac] #42075: Do not show default image on using WP_Customize_Cropped_Image_Control.

WordPress Trac noreply at wordpress.org
Sat May 29 18:19:17 UTC 2021


#42075: Do not show default image on using WP_Customize_Cropped_Image_Control.
--------------------------+-----------------------------
 Reporter:  Toro_Unit     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Customize     |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------

Comment (by celloexpressions):

 `WP_Customize_Media_Control` and its child controls are specifically
 designed to work with attachment IDs. This does create complexities for
 specifying default values. But I'm not sure that it would ever be
 appropriate to use setting values other than an attachment post ID with
 these controls.

 Is there any reason that themes and plugins can't default to a fallback
 value in their output of settings when the media control values are empty?
 Rather than assigning the default value to the setting, I would expect
 ''empty'' settings to be interpreted as applying the default/fallback
 value.

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


More information about the wp-trac mailing list