[wp-trac] [WordPress Trac] #53616: Registered block styles should only be rendered when the block exists on a page

WordPress Trac noreply at wordpress.org
Tue Aug 10 19:44:58 UTC 2021


#53616: Registered block styles should only be rendered when the block exists on a
page
-----------------------------------+--------------------------
 Reporter:  aristath               |       Owner:  gziolo
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  5.8.1
Component:  Script Loader          |     Version:  trunk
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch fixed-major  |     Focuses:  performance
-----------------------------------+--------------------------

Comment (by desrosj):

 It looks like [51417] contains an anonymous function. While these are
 allowed in some situations, they are not currently allowed for filter and
 action hooks ([https://developer.wordpress.org/coding-standards/wordpress-
 coding-standards/php/#closures-anonymous-functions relevant Core coding
 standard]). Can [51417] be refined to not use a closure?

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


More information about the wp-trac mailing list