-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix font printing regression when metabox exists #52343
Fix font printing regression when metabox exists #52343
Conversation
The failing CI job (PHPUnit tests running on PHP 5.6) is not related to this PR. Today, WordPress Core made a change to raise the minimum PHP version to 7.0. Thus, the PHP 5.6 job is no longer needed. But changing that is out of scope for this PR. I opened #52344 to address it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm this PR fixes #51209. Fonts are loaded properly when the Editor is not iframe due to metaboxes being present (Yoast). 🙌
Gutenberg Trunk (not fixed) | This PR (Fixed) |
---|---|
c1cfa34
to
6200aaa
Compare
Test ReportAnother confidence check! Thanks for the PR, @hellofromtonya! Environment
Actual Results
Additional Notes
|
Restarted the failed e2e test. Hmm seeing a high number of e2e CI failures on Core too. What's going on? 🤔 |
Awesome! Thank you @ironprogrammer and @ndiego :) Love test reports!!! As soon as the e2e CI job is happy, I'll merge this PR. |
Removed |
Fixes #51209
What?
Fixes the font printing regression in the post editor when a metabox exists.
Why?
The change that introduced the regression in Gutenberg:
How?
Removes the
if
not a block theme guard around the'admin_print_styles'
hook. This means,
@font-facestyles will be printed in each admin's main doc
` and in each iframed editor.Testing Instructions
a. Go to the Site Editor > Styles > Typography > Headings.
b. In "Font", select "IBM Plex Mono".
c. In "Appearance", select "Bold Italic.
d. Click/select the "Save" button twice.
a. Title: "Mindblowing: a blog about philosophy."
b. Paragraph block: whatever content you want.
a. Open its dev tools to the Network tab.
b. Select "Fonts".
c. Disable the cache, if available.
d. Refresh the page.
Expectations:
IBMMono-Italic.woff2
file should be present in the Network tab.