[wp-trac] [WordPress Trac] #60480: preg_match() warning in wp_image_add_srcset_and_sizes() when image_meta['file'] is missing

WordPress Trac noreply at wordpress.org
Tue Jan 13 15:49:12 UTC 2026


#60480: preg_match() warning in wp_image_add_srcset_and_sizes() when
image_meta['file'] is missing
--------------------------+------------------------------
 Reporter:  shanemac10    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Import        |     Version:  6.4.3
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by sabernhardt):

 On #64499, @djsuperfive reported the 'Undefined array key "file"' error
 with a WEBP image (using the Performance Lab plugin).

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


More information about the wp-trac mailing list