-
Notifications
You must be signed in to change notification settings - Fork 53
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
Use get_asset_info to get dependencies and version of script file for wp_enqueue_script function #608
Conversation
This looks good but seems to only make this change for JS files. I think we want to do the same for the CSS files we are loading which should be referenced in the issue description. |
@dkotter I was not sure whether we should use the asset file version for the style file. I will implement it. |
@dkotter pull request is ready to review. |
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.
Noting that this was reviewed in UAT today and approved for merge, but could hold off on merging until #602 gets merged in
Description of the Change
I use
get_asset_info
function to get dependencies and version of script forwp_enqeueue_script
.Closes #607
How to test the Change
get_asset_info
function in eachwp_enqueue_script
Changelog Entry
Credits
Props @ravinderk @dkotter, @berkod
Checklist: