[wp-trac] [WordPress Trac] #54367: Remove closure hooked to `render_block` within `enqueue_block_styles_assets()`

WordPress Trac noreply at wordpress.org
Tue Nov 2 18:29:35 UTC 2021


#54367: Remove closure hooked to `render_block` within
`enqueue_block_styles_assets()`
---------------------------+--------------------
 Reporter:  desrosj        |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  5.9
Component:  Script Loader  |    Version:  5.8.1
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+--------------------
 Follow up to #54323.

 The core standard is to avoid using anonymous functions for filter and
 action hook callbacks. One was added in [51471], but it should be
 converted to a normal function.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54367>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list