[wp-trac] [WordPress Trac] #49823: WP_Customize_Cropped_Image_Control Default Image Doesn't Display

WordPress Trac noreply at wordpress.org
Sun Apr 5 20:27:31 UTC 2020


#49823: WP_Customize_Cropped_Image_Control Default Image Doesn't Display
--------------------------+-----------------------------
 Reporter:  Schwarttzy    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  5.4
 Severity:  major         |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 I've been wanting to use the customizer control
 WP_Customize_Cropped_Image_Control in my theme for years. However, the
 default image needs to have an attachment ID to work in
 WP_Customize_Cropped_Image_Control. Whereas the customizer control
 WP_Customize_Image_Control just uses an URL to display the image.

 When developing a theme the author is left in a conundrum because they
 cannot have a default image display without adding the image to the
 database. However, that in itself would be ill-advised because theme
 developers are not allowed to mess with the database unless the user
 chooses the theme mod option.

 Is there something I'm missing? Could WP_Customize_Cropped_Image_Control
 be made to display a simple URL for the default image?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49823>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list