[wp-trac] [WordPress Trac] #54323: Too few arguments for function (closure)

WordPress Trac noreply at wordpress.org
Tue Nov 2 18:21:44 UTC 2021


#54323: Too few arguments for function (closure)
-------------------------------------------------+-------------------------
 Reporter:  aristath                             |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.8.2
Component:  Script Loader                        |     Version:
 Severity:  major                                |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests fixed-    |     Focuses:  coding-
  major                                          |  standards
-------------------------------------------------+-------------------------
Changes (by desrosj):

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


Comment:

 In [changeset:"51981" 51981]:
 {{{
 #!CommitTicketReference repository="" revision="51981"
 Script Loader: Correct the number of arguments passed to the closure in
 `enqueue_block_styles_assets()`.

 This avoids an `Uncaught ArgumentCountError: Too few arguments to function
 {closure}(), 1 passed` PHP fatal error when registering a block style with
 the `should_load_separate_core_block_assets` filter enabled.

 Follow-up to [51471].

 Props aristath, shimon246, jrf, gziolo, SergeyBiryukov.
 Merges [54323] to the 5.8 branch.
 Fixes #54323.
 }}}

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


More information about the wp-trac mailing list