[wp-trac] [WordPress Trac] #63840: Block Bindings: Support generic block attributes

WordPress Trac noreply at wordpress.org
Mon Sep 8 11:28:14 UTC 2025


#63840: Block Bindings: Support generic block attributes
--------------------------------------+------------------------------
 Reporter:  Bernhard Reiter           |       Owner:  Bernhard Reiter
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by gziolo):

 In [changeset:"60720" 60720]:
 {{{
 #!CommitTicketReference repository="" revision="60720"
 Tests: Update rendering test cases for Block Bindings

 Refactoring covered:

 - Use the newly introduced
 `block_bindings_supported_attributes_{$block_name}` filter to register a
 `test/block`'s attribute as supported by Block Bindings, rather than using
 an actual block (Paragraph) for most tests.
 - Merge three test cases that check if `get_value_callback` works
 correctly (accepts arguments; correctly includes symbols and numbers;
 return value is sanitized when rendered) into one, by using a
 `dataProvider`.
 - Merge two test cases that check if block context is correctly evaluated,
 and that access is only given to context included in a source's
 `uses_context` property.

 Follow-up to [60684].

 Props bernhard-reiter, gziolo.
 See #63840.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63840#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list