[wp-trac] [WordPress Trac] #55881: Block templates with specific postTypes that have been edited by the user can be selected for any other post type
WordPress Trac
noreply at wordpress.org
Fri Sep 16 15:11:13 UTC 2022
#55881: Block templates with specific postTypes that have been edited by the user
can be selected for any other post type
--------------------------+-----------------------------
Reporter: aljullu | Owner: hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"54187" 54187]:
{{{
#!CommitTicketReference repository="" revision="54187"
Tests: Update the test for respecting the post type in
`get_block_templates()`.
* Use `assertSameSets()` to avoid a failure when array items are returned
in different order ([https://github.com/WordPress/wordpress-
develop/actions/runs/3067320461/jobs/4953478602#step:19:274 example]).
* Move the test to a more appropriate place now that the function has its
own test class.
* Rename the test method to match the function name.
Follow-up to [52062], [53927], [54184].
See #55881.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55881#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list