-
Notifications
You must be signed in to change notification settings - Fork 51
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/wp framework #268
Update/wp framework #268
Conversation
Tests are currently failing because the wp-framework repo is not public |
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.
Left a few small notes here :)
Co-authored-by: Fabian Kägy <[email protected]>
printf( | ||
'<div class="%1$s"><p>%2$s</p></div>', | ||
esc_attr( $class ), | ||
wp_kses_post( __( 'Please ensure the <code>10up/wp-framework</code> composer package is installed.', 'tenup-plugin' ) ) |
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.
Can we make this link to the GitHub repo?
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.
@darylldoyle This looks great—approved! Just one minor suggestion:
Instead of ^1.0.0, I recommend using ~1.0.0. For framework-level changes, this helps signal if there are any breaking changes.
Description of the Change
The current implementation of WP-Scaffold includes numerous components (e.g., Abstract Post Types, Abstract Taxonomies, Module Loaders) that often don't require direct maintenance by project teams. While this structure facilitates rapid, iterative releases, it places the burden of updating these components on individual project teams after initialising a scaffold-based project.
This PR integrates the new https://github.com/10up/wp-framework/ package into the scaffold. The framework aims to remove much of the project-agnostic functionality from the scaffold so that it can be updated and maintained separately.
Splitting the scaffold into a core repository and a separate framework package offers significant advantages in terms of security, scalability, standardisation, and the ability to push updates seamlessly across projects. This approach ensures all projects can benefit from centralised improvements while allowing teams the flexibility to customise for unique needs.
Things still to do
wp-framework
repo and add to packagistdev-trunk
How to test the Change
Changelog Entry
Credits
Props @darylldoyle
Checklist: