WordPress/wp-includes/fonts
hellofromTonya ffc53f010f Editor: Check PHP 8.1.12 for woff/woff2 mime types in WP_Font_Utils.
Fixes a bug where fonts could not be installed in PHP 8.1.0 through 8.1.11 due to incorrect MIME type assignment.

While `WP_Font_Utils::get_allowed_font_mime_types()` conditionally sets the MIME type for woff and woff2, it incorrectly checks against PHP 8.1.0. The MIME type change did not occur until PHP 8.1.12.

References:

* [https://github.com/php/php-src/issues/8805 PHP-src: finfo returns wrong mime type for woff/woff2 files].
* [https://www.php.net/ChangeLog-8.php#8.1.12 PHP 8.1.12 changelog].
* Tests: Adjust the expected mime type for WOFF fonts on PHP 8.1.12+ [55463].
* [https://github.com/WordPress/gutenberg/pull/59015 Gutenberg PR 59015].

Follow-up to [57539].

Props costdev, kafleg, hellofromTonya.
Fixes 60536.
Built from https://develop.svn.wordpress.org/trunk@57632


git-svn-id: http://core.svn.wordpress.org/trunk@57133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-14 17:28:13 +00:00
..
class-wp-font-collection.php Editor: Introduce the Font Library post types and low level APIs. 2024-02-06 08:42:12 +00:00
class-wp-font-face-resolver.php Fonts: Get font-family name from 'fontFamily' field. 2023-09-25 21:29:17 +00:00
class-wp-font-face.php
class-wp-font-library.php REST API: Introduce the necessary endpoints for the font library. 2024-02-07 09:20:08 +00:00
class-wp-font-utils.php Editor: Check PHP 8.1.12 for woff/woff2 mime types in WP_Font_Utils. 2024-02-14 17:28:13 +00:00
dashicons.eot
dashicons.svg
dashicons.ttf
dashicons.woff
dashicons.woff2