[wp-trac] [WordPress Trac] #62231: Font faces defined in variations aren't loaded in the browser until the variation switch is saved and the page is refreshed
WordPress Trac
noreply at wordpress.org
Mon Oct 21 07:33:55 UTC 2024
#62231: Font faces defined in variations aren't loaded in the browser until the
variation switch is saved and the page is refreshed
-------------------------------------------------+-------------------------
Reporter: mmaattiiaass | Owner:
| peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs- | Focuses:
testing has-testing-info |
-------------------------------------------------+-------------------------
Comment (by ugyensupport):
== Font faces defined in variations aren't loaded in the browser until the
variation switch is saved and the page is refreshed
=== Description
When switching style variations, the font faces defined in those
variations are not loaded in the editor but after the page is reloaded.
=== Steps
Switch to a theme style variation with custom font faces defined.
Check that the fonts are not loaded in the editor until the page is
refreshed (browser reload).
Patch tested:
https://github.com/WordPress/wordpress-develop/pull/7581/files
https://github.com/WordPress/wordpress-develop/pull/7570/files
=== Environment
- WordPress: 6.7-beta3
- PHP: 8.3.10
- Server: nginx/1.21.4
- Database: mysqli (Server: 5.7.44-log / Client: mysqlnd 8.3.10)
- Browser: Chrome 129.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.0
- MU Plugins: None activated
- Plugins:
* Akismet Anti-spam: Spam Protection 5.3.3
* Gutenberg 19.4.0
* Test Reports 1.1.0
* WordPress Beta Tester 3.6.0
=== Actual Results
1. ✅ Issue resolved with patch.
As mentioned by @ironprogrammer
Custom fonts in style variations are immediately and accurately
reflected in the style
thumbnails and editor preview. No page refresh is needed to show
the custom fonts.
=== Supplemental Artifacts
Before: https://vioo.cc/v/1x0
After : https://vioo.cc/v/Yh7
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62231#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list