-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only load front end CSS when it is needed (#1455)
* Only load front end CSS when it is needed This checks to make sure that a Coblock is being used before requiring the CSS to be loaded on the front end of the site. This is to address #1454 In my basic tests this worked fine, however I'd like to see it get broader testing to make sure I haven't missed other conditions. * Define $post global and don't overwrite it * Ensure assets load when block editor is used. * Only check post content if not in the admin * Resolve failing tests * Adding tests * Updating contributors Co-authored-by: JR Tashjian <jrtashjian@gmail.com>
- Loading branch information
1 parent
fb76a26
commit 2263dfb
Showing
4 changed files
with
111 additions
and
1 deletion.
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
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
I'm getting a number of PHP errors for $post_content being undefined. It appears this happens if the preceding conditional fails.