[wp-trac] [WordPress Trac] #63568: WP_Font_Face: Font names that contain single quotes are not wrapped in double quotes

WordPress Trac noreply at wordpress.org
Fri Mar 27 15:44:35 UTC 2026


#63568: WP_Font_Face: Font names that contain single quotes are not wrapped in
double quotes
-------------------------------------------------+-------------------------
 Reporter:  wildworks                            |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Editor                               |     Version:  6.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-test-info has-         |     Focuses:  ui, css
  screenshots has-unit-tests needs-testing dev-  |
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by jonsurrell):

 I've created [https://github.com/WordPress/gutenberg/pull/76782 GB PR
 76782] which should completely fix this issue.

 While this issue is fixed, a number of problems with fonts remain and
 there may be follow-up work. Several of the sanitization functions applied
 on to different font values could create problems with some font names.

 The PR I've shared above is aware of most of the problems and avoids them
 by using CSS strings with Unicode escape sequences to replace a number of
 characters that are likely to be problematic.

 [https://github.com/WordPress/gutenberg/pull/76782 PR review is welcome.]

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


More information about the wp-trac mailing list