[wp-trac] [WordPress Trac] #61983: Part of `wp_generate_attachment_metadata` missing `avif` extension

WordPress Trac noreply at wordpress.org
Fri Sep 6 22:47:01 UTC 2024


#61983: Part of `wp_generate_attachment_metadata` missing `avif` extension
-----------------------------+------------------------------
 Reporter:  adamsilverstein  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  6.5
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------

Comment (by ironprogrammer):

 Thanks for the report and patch, @adamsilverstein 🙌🏻

 Yeah, [https://github.com/WordPress/wordpress-
 develop/blob/fd6c5606b1c572442f0eb15bafee0852cbbb7035/tests/phpunit/tests/media/wpGenerateAttachmentMetadata.php
 wpGenerateAttachmentMetadata.php] doesn't cover that kind of scenario yet.
 What are the conditions required to validate the use of the fallback
 extension? When the attachment is a video, then
 `$metadata['image']['data']` isn't set, which skips that path.

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


More information about the wp-trac mailing list