[wp-trac] [WordPress Trac] #59532: Avoid registering block-patterns on the frontend

WordPress Trac noreply at wordpress.org
Fri Feb 23 16:53:54 UTC 2024


#59532: Avoid registering block-patterns on the frontend
--------------------------------------+--------------------------
 Reporter:  aristath                  |       Owner:  thekt12
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.5
Component:  Editor                    |     Version:  6.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------

Comment (by joemcgill):

 In [changeset:"57703" 57703]:
 {{{
 #!CommitTicketReference repository="" revision="57703"
 Editor: Improve PHPUnit tests for block pattern registration.

 This is a followup to [57683], which adds additional unit test coverage to
 ensure block pattern content is not loaded from files during registration,
 but instead when those patterns are accessed. This also improves the
 `set_up` and `tear_down` methods for the
 `Tests_Blocks_wpBlockPattersRegistry` test class to ensure that any
 modifications made to registered blocks during the tests are reset after
 each test.

 Props thekt12, joemcgill.
 See #59532.
 }}}

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


More information about the wp-trac mailing list