-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WP.com Block Editor: Enqueue missing common styles on the front-end. (#…
…14070) * WP.com Block Editor: Enqueue missing common styles on the front-end. * Use `enqueue_block_assets` instead of two separate hooks. * Only enqueue styles in the editor, and on the front-end when the `$post` object has paragraph blocks (the only blocks that have the Justify button). * Correct paragraph block identifier. * Avoid fatal errors for unfound `WP_Screen`. * Enqueue only if in the block editor, or on the front-end with justified paragraphs in the content.
- Loading branch information
Showing
1 changed file
with
48 additions
and
10 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