-
Notifications
You must be signed in to change notification settings - Fork 209
Fix blocks late initialization #6823
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 blocks late initialization #6823
Conversation
WordPress Dependencies ReportThe
This comment was automatically generated by the |
The assets should be initialized only on the specified post type.
This reverts commit 9d1a467.
Codecov Report
@@ Coverage Diff @@
## feature/learning-mode-improvements #6823 +/- ##
========================================================================
- Coverage 47.38% 47.19% -0.19%
- Complexity 10118 10133 +15
========================================================================
Files 499 499
Lines 35977 35895 -82
Branches 283 283
========================================================================
- Hits 17046 16940 -106
- Misses 18719 18743 +24
Partials 212 212
... and 55 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
merkushin
left a comment
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.
👍
Thanks for tests!
We were having issues with customizing our blocks in the Course theme using style variations. After some investigation, it turned out that our blocks were initialized too late (during the
current_screenhook for the admin and ontemplate_redirectfor the frontend). The recommended way is to initialize blocks on theinithook.Proposed Changes
inithook.Testing Instructions
Pre-Merge Checklist