[wp-trac] [WordPress Trac] #60536: Installing Google font error - No font faces were installed.

WordPress Trac noreply at wordpress.org
Wed Feb 14 17:30:10 UTC 2024


#60536: Installing Google font error - No font faces were installed.
----------------------------------------------+----------------------------
 Reporter:  kafleg                            |       Owner:
                                              |  hellofromTonya
     Type:  defect (bug)                      |      Status:  closed
 Priority:  normal                            |   Milestone:  6.5
Component:  Editor                            |     Version:  trunk
 Severity:  critical                          |  Resolution:  fixed
 Keywords:  gutenberg-merge has-patch commit  |     Focuses:
----------------------------------------------+----------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 Committed via changeset [57632]:

 Fonts: Check PHP 8.1.12 for woff/woff2 mime types.

 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.

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


More information about the wp-trac mailing list