-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style engine: enqueue block supports styles in Gutenberg (#42880)
* Enqueuing block supports styles in gutenberg Updating README.md * get_instance() and constructor no longer needed * remove $instance declaration * Rename hook callback to `gutenberg_enqueue_stored_styles` Hard code a list of core styles that we want to fetch from the store and the order in which we fetch them. * Removing layout-block-supports store Chaining store ids for the style tag id attribute so it's clear what's being included. Also adding a comment for debugging for the same purpose. * Removing layout-block-supports store Chaining store ids for the style tag id attribute so it's clear what's being included. Also adding a comment for debugging for the same purpose. Adding tests for enqueuing styles Updated README.md * Assign $duplicate_selectors var to avoid duplicate implodes * Update packages/style-engine/README.md Co-authored-by: Andrew Serong <[email protected]> * Apply suggestions from code review Co-authored-by: Andrew Serong <[email protected]> * Remove unnecessary conditional * Remove deprecation notice for now until we can deal with other usages, e.g., gallery/index.php * For block themes, print stored styles in the header. For classic themes, in the footer. * Update packages/style-engine/README.md Co-authored-by: Sören Wrede <[email protected]> Co-authored-by: Ari Stathopoulos <[email protected]> Co-authored-by: Andrew Serong <[email protected]> Co-authored-by: Sören Wrede <[email protected]>
- Loading branch information
1 parent
ff8538b
commit 090171d
Showing
6 changed files
with
333 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.