[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
Wed Jun 18 06:42:20 UTC 2025


#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:  6.9
Component:  Editor                               |     Version:  6.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-test-    |     Focuses:  ui
  info has-screenshots                           |
-------------------------------------------------+-------------------------
Changes (by rollybueno):

 * keywords:  has-patch needs-testing => has-patch needs-testing has-test-
     info has-screenshots
 * focuses:   => ui


Comment:

 == Test Report
 === Description
 This report validates whether the indicated patch works as expected.

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/8982

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.27.5
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 136.0.0.0
 - OS: Linux
 - Theme: Twenty Twenty-Five 1.2
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Actual Results
 1.  ✅ Issue resolved with patch.

 - Custom font named "O'Reilly Sans" is now correctly wrapped in double
 quotes in the generated @font-face CSS:
 [[Image(https://i.imgur.com/HBERAlO.png)]]
 - The font remains applied after refreshing the Site Editor and is
 correctly rendered on the frontend.

 === Additional Notes
 - With the patch applied, the quoting issue is fixed, resulting in valid
 CSS output.

 === Supplemental Artifacts

 Video recording:
 https://www.awesomescreenshot.com/video/41086843?key=c613daad2490e76793493416500628f5

 Script: [[Image(https://i.imgur.com/UFhMNNT.png)]]

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


More information about the wp-trac mailing list