-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Support removing an attribute for Pattern Overrides #57993
Conversation
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/block-supports/pattern.php ❔ lib/experimental/block-bindings/block-bindings.php ❔ lib/experimental/block-bindings/class-wp-block-bindings.php ❔ lib/experimental/block-bindings/sources/pattern.php ❔ lib/experimental/block-bindings/sources/post-meta.php ❔ lib/experimental/blocks.php |
Size Change: +80 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in 61a6dd4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7580217076
|
We'll revisit this in another format. |
What?
Part of #53705. An alternative to #57947.
This changes the overrides serialized data into a tuple with the following signature:
This also opens up the possibility of having an
insert
patch that we can use for adding inner blocks.Why?
As opposed to #57947. This change is based on the assumption that sometimes some attributes have different meanings between having
NULL
as the value and not existing at all.However, I don't find any existing use case for such an assumption. So, we might not need this after all.
How?
Serialize the overrides data into a patch similar to the JSON patch schema
Testing Instructions
Follow the instructions in #53705 (comment) to create a pattern with overrides.
Screenshots or screencast
TBD