[wp-trac] [WordPress Trac] #46635: Improve identifying of non–trivial callbacks in hooks
WordPress Trac
noreply at wordpress.org
Fri Jul 12 14:08:49 UTC 2019
#46635: Improve identifying of non–trivial callbacks in hooks
-------------------------+-------------------------------
Reporter: Rarst | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses: coding-standards
-------------------------+-------------------------------
Comment (by Rarst):
> we added a required namespace parameter explicitly so we could (find
and) remove hooks. Is there any way we could add something like that to
PHP hooks?
Since API had already been established for many years it is not viable to
introduce new mandatory behavior for complex callbacks.
While new opt in behavior could be introduced, as above I strongly believe
that would not be an adequate solution. We are not at API design stage
here, we need solution that enhances long existing API in very wide use.
I am busy with work at the moment, but I still intend to circle back to
this and take a stab on a patch following my proposal.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46635#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list