-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Interactivity API: Implement wp_initial_state()
#56698
Conversation
…nteractivity-api-initial-state
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/experimental/interactivity-api/class-wp-interactivity-initial-state.php ❔ lib/experimental/interactivity-api/directives/wp-interactive.php ❔ lib/experimental/interactivity-api/initial-state.php ❔ phpunit/experimental/interactivity-api/class-wp-interactivity-initial-state-test.php ❔ lib/experimental/interactivity-api/class-wp-directive-processor.php ❔ lib/experimental/interactivity-api/directive-processing.php ❔ lib/experimental/interactivity-api/directives/wp-bind.php ❔ lib/experimental/interactivity-api/directives/wp-class.php ❔ lib/experimental/interactivity-api/directives/wp-context.php ❔ lib/experimental/interactivity-api/directives/wp-style.php ❔ lib/experimental/interactivity-api/directives/wp-text.php ❔ lib/load.php ❔ phpunit/experimental/interactivity-api/directive-processing-test.php ❔ phpunit/experimental/interactivity-api/directives/wp-bind-test.php ❔ phpunit/experimental/interactivity-api/directives/wp-class-test.php ❔ phpunit/experimental/interactivity-api/directives/wp-context-test.php ❔ phpunit/experimental/interactivity-api/directives/wp-style-test.php ❔ phpunit/experimental/interactivity-api/directives/wp-text-test.php |
16e5150
to
1ed8b04
Compare
af9e04c
to
a3f5aa7
Compare
ec22d09
to
4843cb7
Compare
|
What?
Built on top of #56302
Tracking issue: #53740
Implements the
wp_initial_state()
function, a replacement forwp_store()
, following the specification defined in the newstore()
API proposal. Extracted from the proposal:In addition, a system to handle store namespaces was added as required by
wp_initial_state
.Why?
This function simplifies the way the initial state for interactive blocks is defined. Also, it is required to complete the migration to the new
store()
API.How?
WIP
Testing Instructions
TBD