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

WordPress Trac noreply at wordpress.org
Mon May 5 19:26:15 UTC 2025


#63394: preg_match() warning in wp_image_add_srcset_and_sizes() when
image_meta['file'] is missing
--------------------------+--------------------------------
 Reporter:  enravo        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:  duplicate
 Keywords:  has-patch     |     Focuses:  php-compatibility
--------------------------+--------------------------------
Changes (by sabernhardt):

 * status:  new => closed
 * version:  6.8 =>
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi and welcome to WordPress Core Trac!

 #60480 already proposes to check for the 'file' array key in
 `wp_image_add_srcset_and_sizes()`. Please continue the discussion on that
 ticket.

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


More information about the wp-trac mailing list