[wp-trac] [WordPress Trac] #10836: Several Importers call create_function() multiple times per imported post

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 23 21:38:33 UTC 2009


#10836: Several Importers call create_function() multiple times per imported post
--------------------------+-------------------------------------------------
 Reporter:  mdawaffe      |       Owner:                         
     Type:  defect (bug)  |      Status:  new                    
 Priority:  normal        |   Milestone:  2.9                    
Component:  Import        |     Version:  2.8.4                  
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------
 The WordPress, Blogger, Blogware, LiveJournal, and RSS importers all call
 create_function() one or more times per post.

 Importing a lot of posts means creating a lot of functions, all of which
 do the same thing.  This can lead to fatal memory allocation errors.

 Attached replaces each create_function() call with a hardcoded function.

 Patch in UNTESTED.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10836>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list