[wp-trac] [WordPress Trac] #64112: Block Bindings: Use `field` instead of `key` for post-data source.
WordPress Trac
noreply at wordpress.org
Fri Oct 17 14:55:27 UTC 2025
#64112: Block Bindings: Use `field` instead of `key` for post-data source.
--------------------------+-----------------------------
Reporter: cbravobernal | Owner: (none)
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: gutenberg-merge
Focuses: |
--------------------------+-----------------------------
The first use case for block bindings was post-meta source. This one keeps
a key - value relation, which makes totally sense. But all examples for
Block Bindings have been done with this key argument, and the UI was
pretty key dependant.
After the UI refactor, args can contain anything, and using the argument
that fits better for each source is encouraged.
For post-meta and term-data, key may not be the best, as it will connect
in a future to different fields.
The source has been introduced during 6.9 cycle, but lived inside
Gutenberg for a couple of versions, so I added backward compatibility with
key only for the Gutenberg plugin, that way we cover:
WP 6.8.X and 6.7.X versions that used the new post-date approach with
Gutenberg enabled.
WP 6.9 without GB will use the migration to the new post-date with field.
WP 6.9 with GB enabled.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64112>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list