[wp-trac] [WordPress Trac] #37698: wp_kses_split global variable pollution
WordPress Trac
noreply at wordpress.org
Fri Apr 24 01:46:54 UTC 2020
#37698: wp_kses_split global variable pollution
--------------------------+---------------------
Reporter: xknown | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
--------------------------+---------------------
Comment (by peterwilsoncc):
As this will be the first closure in core, it's worth referring to the
[https://make.wordpress.org/core/2019/07/12/php-coding-standards-changes/
coding standards changes of July 2019].
> With these points in mind, a conservative, but practical step is to
allow closures as function callbacks, but not as hook callbacks in Core.
Ultimately, we should be able to allow any sort of complex callback to be
attached to hooks, but the Core APIs aren’t quite ready for it yet.
tl;dr: In this context a closure is dandy.
--
[https://wpdirectory.net/search/01E6MXNV4RHA7A35FGQRVZ52WX Plugin search
results for _wp_kses_split_callback] in the WordPress directory returns
only false positives.
It would still be good to move the function to deprecated.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37698#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list