[wp-trac] [WordPress Trac] #37082: Remove (most) uses of create_function() from core

WordPress Trac noreply at wordpress.org
Sun Jun 12 16:57:53 UTC 2016


#37082: Remove (most) uses of create_function() from core
-------------------------+-----------------------------
 Reporter:  sgolemon     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 There are currently five uses of create_function() in WP core.  Four of
 them may be trivially refactored into simpler, more secure, and
 (marginally) more performant versions which do not use create_function()
 while still retaining PHP 5.2.0 compatability.

 The fifth use, in wp-includes/pomo/translations.php relies on arbitrary
 code evaluation and can't be trivially refactored, so it's been left out
 of this issue.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37082>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list