[wp-trac] [WordPress Trac] #23265: Canonical callback representation
WordPress Trac
noreply at wordpress.org
Tue Jan 22 23:52:42 UTC 2013
#23265: Canonical callback representation
-------------------------+------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.6
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------
Comment (by rmccue):
Replying to [comment:3 toscho]:
> Another variant:
>
> {{{
> add_filter( 'the_content', ['Class_Name', 'static_callback_method'] );
> }}}
>
> But that should be equal to your first example.
Yep, that's just shorthand for an array in 5.4+.
With closures, they're pretty much going to have to be assigned to a
variable to do anything with them. The only thing I can think of doing is
involving where they were defined via ReflectionFunction, but that seems a
little horrible.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23265#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list