[wp-trac] [WordPress Trac] #55133: Using an array containing a single object as first $arg in do_action()
WordPress Trac
noreply at wordpress.org
Thu Feb 10 09:41:51 UTC 2022
#55133: Using an array containing a single object as first $arg in do_action()
-------------------------------------------------+-------------------------
Reporter: pskli | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion needs-dev- | Focuses:
note |
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* keywords: has-patch => has-patch 2nd-opinion needs-dev-note
* version: 5.9 =>
Comment:
Hello @pskli and thanks for raising this,
We don't need PHP4 backwards compatibility anymore so removing this
fallback makes sense, however I'm feeling a bit hesitant since changing
this could break plugins relying on the current behavior.
This change would at least need a dev note, and probably further
investigation to make sure this is not a massive breaking change in the
ecosystem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55133#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list