-
Notifications
You must be signed in to change notification settings - Fork 0
fix: force to load core block assets since WP 6.9 #54
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -255,4 +255,15 @@ private function removeOuterDiv(DOMDocument $doc): string | |||||
|
|
||||||
| return $newContent; | ||||||
| } | ||||||
|
|
||||||
| /** | ||||||
| * Overwrite the project should_load_separate_core_block_assets since WP 6.9 | ||||||
| * | ||||||
| * @see https://github.com/roots/sage/pull/3279 | ||||||
| */ | ||||||
| #[Action('should_load_separate_core_block_assets')] | ||||||
| public function forceLoadSeparateCoreBlockAssets(): bool | ||||||
|
||||||
| public function forceLoadSeparateCoreBlockAssets(): bool | |
| public function disableSeparateCoreBlockAssets(): bool |
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.
should_load_separate_core_block_assetsis a WordPress filter hook; using theActionattribute here makes the intent unclear. Consider switching this attribute toFilter(and keep the return typebool) to better reflect the hook’s behavior and avoid confusion for future maintainers.