[wp-trac] Re: [WordPress Trac] #3047: get_plugininfo()

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 21 21:07:16 GMT 2006


#3047: get_plugininfo()
------------------------------------------+---------------------------------
 Reporter:  forceagainstsomething         |        Owner:  westi   
     Type:  enhancement                   |       Status:  assigned
 Priority:  normal                        |    Milestone:          
Component:  Administration                |      Version:  2.1     
 Severity:  normal                        |   Resolution:          
 Keywords:  bg|has-patch bg|dev-feedback  |  
------------------------------------------+---------------------------------
Comment (by masquerade):

 Personally, I think that a plugin author should know the name of the file
 they're working with. get_plugininfo('whatevvv',
 'myplugindir/mymainpluginfile.php'); is not hard to type. There's no need
 for fancy lookups and all that crap from a subplugin file. Or, here's a
 better idea, in your base plugin file, define myplugin_getinfo($info) {
 return get_pluginfo($info, !__FILE!__); }. I see no point in a crappy
 implementation to work around lazy plugin developers.

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


More information about the wp-trac mailing list