[wp-trac] [WordPress Trac] #54323: Too few arguments for function (closure)
WordPress Trac
noreply at wordpress.org
Wed Oct 27 17:08:29 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 | Focuses: coding-standards
----------------------------------------+-------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"51941" 51941]:
{{{
#!CommitTicketReference repository="" revision="51941"
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.
Fixes #54323.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54323#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list