[wp-trac] Re: [WordPress Trac] #5651: Optimize get_plugin_data

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 12 23:54:45 GMT 2008


#5651: Optimize get_plugin_data
----------------------------------------------+-----------------------------
 Reporter:  filosofo                          |        Owner:  anonymous
     Type:  defect                            |       Status:  new      
 Priority:  normal                            |    Milestone:  2.5      
Component:  General                           |      Version:  2.5      
 Severity:  normal                            |   Resolution:           
 Keywords:  has-patch get_plugin_data memory  |  
----------------------------------------------+-----------------------------
Comment (by darkdragon):

 Well, part of the problem also is that I'm using {{{stripos()}}}, so in
 theory, if any batch of the contents contains all of the plugin data
 fields with semicolons it will cause the loop to break and the info to not
 be pulled in.

 I can't justify doing two preg_matches without returning anything. With
 the worse case, it might be better to return the matches in the
 plugin_get_contents instead of a string and allow for get_plugin_data() to
 finish triming and cleaning the data.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5651#comment:18>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list