[wp-trac] [WordPress Trac] #58208: `wp_enqueue_registered_block_scripts_and_styles` is called twice

WordPress Trac noreply at wordpress.org
Wed May 24 09:23:10 UTC 2023


#58208: `wp_enqueue_registered_block_scripts_and_styles` is called twice
--------------------------+------------------------
 Reporter:  oandregal     |       Owner:  oandregal
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.3
Component:  Editor        |     Version:  5.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------
Changes (by oandregal):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55852" 55852]:
 {{{
 #!CommitTicketReference repository="" revision="55852"
 Loading assets for the editor: Revert [55695].

 The changeset [55695] introduced a regression in the order of styles for
 the editor, causing the styles registered for the block (both editor and
 front) to be loaded after any other styles enqueued using the
 `enqueue_block_editor_assets` hook.

 Since the original behavior was introduced in WordPress 5.0 changing it
 breaks the expectations of the ecosystem.

 Props ellatrix.
 Fixes #58208.
 }}}

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


More information about the wp-trac mailing list