Skip to content
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

Update/asset loading #281

Draft
wants to merge 4 commits into
base: trunk
Choose a base branch
from
Draft

Update/asset loading #281

wants to merge 4 commits into from

Conversation

darylldoyle
Copy link
Collaborator

@darylldoyle darylldoyle commented Feb 27, 2025

Description of the Change

This PR moves the asset loading trait out of each theme and plugin and into the WP Framework. The only real change, is that we need to pass some vars in to set up the paths, so that the framework knows where to asset files.

This is reliant on 10up/wp-framework#5 being merged and released.

How to test the Change

Ensure JS and CSS files are loading correctly.

Changelog Entry

  • Developer - Changed where the GetAssetInfo trait is loading from.

Credits

Props @darylldoyle

Checklist:

@darylldoyle darylldoyle self-assigned this Feb 27, 2025
@darylldoyle
Copy link
Collaborator Author

@fabiankaegy, the tests are failing for now, as we've not released the update in the framework, but what do you think of this approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant