[wp-trac] [WordPress Trac] #65161: Give an error message when a non-image is uploaded for site icon

WordPress Trac noreply at wordpress.org
Mon May 4 17:53:43 UTC 2026


#65161: Give an error message when a non-image is uploaded for site icon
--------------------------+------------------------------
 Reporter:  Presskopp     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by sabernhardt):

 If someone uploads a text file (or other non-image) for a site icon and
 selects it, then the 'Crop image' dialog shows the `<img>` alternative
 text:
 > Image crop area preview. Requires mouse interaction.

 The button text remains the same as it was in the Upload part of the
 dialog, and clicking the button has no effect.
 - "Select" in the Customizer
 - "Set as Site Icon" in General Settings

 Interestingly, if I resize the window height while the dialog is on the
 'Crop image' step, the button text switches to "Crop image" and clicking
 that gives an error message.
 {{{
 <div class="upload-error">
         <span class="upload-error-filename word-wrap-break-
 word">sample.txt</span>
         <span class="upload-error-message">There has been an error
 cropping your image.</span>
 </div>
 }}}

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


More information about the wp-trac mailing list