[wp-trac] [WordPress Trac] #58839: Editor: Add test coverage for context setting in Comment Template block
WordPress Trac
noreply at wordpress.org
Tue Jul 18 16:08:04 UTC 2023
#58839: Editor: Add test coverage for context setting in Comment Template block
---------------------------------------------+-----------------------------
Reporter: Bernhard Reiter | Owner: Bernhard
| Reiter
Type: enhancement | Status: closed
Priority: low | Milestone: 6.3
Component: Editor | Version:
Severity: minor | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-----------------------------
Changes (by Bernhard Reiter):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"56262" 56262]:
{{{
#!CommitTicketReference repository="" revision="56262"
Editor: Add test for context setting in Comment Template block.
Test that `commentId` context is correctly set and made available by the
Comment Template block to the `render_block_context` filter (at priority 2
and higher), and to the `render_block` filter (important when
programmatically inserting child blocks into the Comment Template block).
Furthermore, test that child blocks inserted via the `render_block_data`
filter are retained and thus present at `render_block` filter stage.
Props andrewserong, ramonopoly, peterwilsoncc, costdev, mukesh27,
flixos90.
Fixes #58839.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58839#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list