Make WordPress Core

Changeset 57524 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
02/02/2024 05:46:50 PM (10 months ago)
Author:
adamsilverstein
Message:

Media: enable AVIF support.

Add support for uploading, editing and saving AVIF images when supported by the server.

Add 'image/avif' to supported mime types. Correctly identify AVIF images and sizes even when PHP doesn't support AVIF. Resize uploaded AVIF files (when supported) and use for front end markup.

Props adamsilverstein, lukefiretoss, ayeshrajans, navjotjsingh, Tyrannous, jb510, gregbenz, nickpagz, JavierCasares, mukesh27, yguyon, swissspidy.
Fixes #51228.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r57264 r57524  
    6060    <exclude-pattern>/src/wp-includes/class-simplepie\.php</exclude-pattern>
    6161    <exclude-pattern>/src/wp-includes/class-snoopy\.php</exclude-pattern>
     62    <exclude-pattern>/src/wp-includes/class-avif-info\.php</exclude-pattern>
    6263    <exclude-pattern>/src/wp-includes/deprecated\.php</exclude-pattern>
    6364    <exclude-pattern>/src/wp-includes/ms-deprecated\.php</exclude-pattern>
Note: See TracChangeset for help on using the changeset viewer.