[wp-trac] [WordPress Trac] #60957: Install fonts in Font Library in WP 6.5 not working on multisite using Twenty Twenty-four

WordPress Trac noreply at wordpress.org
Sat Feb 8 00:22:42 UTC 2025


#60957: Install fonts in Font Library in WP 6.5 not working on multisite using
Twenty Twenty-four
--------------------------+------------------------------
 Reporter:  hartsook      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  multisite
--------------------------+------------------------------

Comment (by RavanH):

 Yup, I'm running into the exact same thing but with Twenty Twenty-Five.

 This happens on a Multi-site in subdomain mode that is installed on
 **https**. Our SSL license has a wildcard subdomain and the server
 responds with HTST so all traffic is forced to https.

 However, sub-sites on subdomain installations will be created with home
 and siteurl in **http** scheme. This does not appear to hinder anything
 except in the case of font files that were installed via the Site Editor.

 These files are referenced over http in the front end page source, which
 means they are blocked as mixed content by the browser, breaking any
 custom font rendering.

 If I go to the Network > Sites and manually change http to https in the
 home and siteurl fields for the sub-site, the issue is resolved. But it's
 annoying to have to do that on each new sub-site...

 So to reproduce:
 1. prepare your server/domain for https with a subdomain wildcard
 1. set up a permanent redirect of all http traffic to https
 1. create a multi-site installation in subdomain mode (not subdirectory)
 1. create a sub-site (as an anonymous user via the front end for good
 measure)
 1. log in as new user into your new site and go to Editor > Styles > Edit
 styles > Typography > Fonts > Install fonts
 1. Install a new font from Google Fonts and then set regular Text or
 Headings to use that font

 Visit the site home page and notice the new font is **not** rendered and a
 mixed content error occurs in the browser console.

 To "fix":
 1. log back in as super-admin and go to Network > Sites
 1. Edit the new site Site URL from http to https
 1. Go back to the new sub-site and repeat the above to re-install a font
 (you will need to uninstall the failing font)

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


More information about the wp-trac mailing list