[wp-trac] [WordPress Trac] #10493: Allow closures as callbacks
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 5 23:00:59 UTC 2010
#10493: Allow closures as callbacks
-------------------------+--------------------------------------------------
Reporter: scribu | Owner: scribu
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 2.9
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
Comment(by scribu):
> Next to the fact that this wordpress enhancement which just is an
existing PHP feature (we do not need to patch anything, this will work out
of the box), you should keep in mind that you need PHP version 5.3 or
higher for it.
If this would work out of the box on a server with PHP 5.3 installed, I
wouldn't have opened this ticket.
> Unless the system requirements do not call for that PHP version (WP core
is far away from that), suggesting to use it is just wrong, it will
actually defect exsiting code in case core code is changed based on this
tickets suggestion.
I agree that WP core is very far away from PHP 5.3 (that's why the
milestone is set to Future Release), but I don't agree with the statement
that this would negatively affect existing code.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10493#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list