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

WordPress Trac noreply at wordpress.org
Tue Dec 13 01:48:42 UTC 2016


#37082: Remove (most) uses of create_function() from core
--------------------------------+---------------------
 Reporter:  sgolemon            |       Owner:  rmccue
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  4.8
Component:  General             |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch upstream  |     Focuses:
--------------------------------+---------------------
Changes (by rmccue):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39591"]:
 {{{
 #!CommitTicketReference repository="" revision="39591"
 General: Remove most uses of create_function()

 create_function() is equivalent to eval(), and most of our uses can be
 refactored. This is simpler, more secure, and slightly more performant.

 Props sgolemon.
 Fixes #37082.
 }}}

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


More information about the wp-trac mailing list