-
Notifications
You must be signed in to change notification settings - Fork 42
Handle missing or invalid asset files gracefully in Asset_Loader.
#175
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: develop
Are you sure you want to change the base?
Handle missing or invalid asset files gracefully in Asset_Loader.
#175
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @pbearne@git.wordpress.org. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #175 +/- ##
=============================================
+ Coverage 46.89% 47.87% +0.97%
- Complexity 208 246 +38
=============================================
Files 19 22 +3
Lines 1271 1433 +162
=============================================
+ Hits 596 686 +90
- Misses 675 747 +72
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dkotter
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.
A couple things here:
- There's a handful of PHPCS things that need cleaned up
- I'd argue the better approach here is an early check to see if the file exists. If not, there's no reason to run any of the code. I think that fixes the issue you're seeing and removes the need for most of the change here
… standards adherence.
I thought about that, but the function can use an asset.php file |
Not sure I follow? It does pull the |
|
Thanks for the PR! In addition to the previous review, I believe we should also have the check and early bail for |
What?
Closes #174
tide up the enqueue_style() code
Why?
tide up and fix warning