Add Verse block bindings support#78860
Conversation
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: 0 B Total Size: 8.21 MB ℹ️ View Unchanged
|
What?
Adds block bindings support for the Verse block
contentattribute.Part of #78851.
Core backport PR: WordPress/wordpress-develop#12041
Why?
core/versehas a single top-level rich text content attribute, so it can use the existing generic rich-text block bindings replacement path without media, URL, or navigation-specific coupling.This is scoped as a WordPress 7.1 compat addition in the Gutenberg plugin.
How?
contentto the supported block binding attributes forcore/verseinlib/compat/wordpress-7.1/block-bindings.php.content.Show contentfor Verse.Testing Instructions
docker exec 23f0d96e0dd1 bash -lc 'cd /var/www/html/wp-content/plugins/gutenberg && vendor/bin/phpunit --filter Tests_Block_Bindings'vendor/bin/phpcs lib/compat/wordpress-7.1/block-bindings.php lib/load.php phpunit/block-bindings-test.phpnpm run lint:js -- test/e2e/specs/editor/various/block-bindings/custom-sources.spec.jsgit diff --checkI also ran a local wp-admin smoke check against
localhost:8889with the activecustom-acf-blockssource plugin and verified the Verse block Attributes menu exposesShow content.