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

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 21 20:50:18 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 westi):

 ''"The only situation where an include file for a plugin would be in the
 directory of another plugin, is when a plugin developer dumps all the
 scripts for his plugin straight into the /plugins directory. No one should
 be doing that to begin with."''

 It is not the include file being in the same directory but the plugin
 itself.

 If the plugin is in the same folder as other plugins with the includes in
 a child folder your lookup code finds the first (alphabetically I believe)
 plugin in the folder of plugins and matches that.

 My implementation is not pointless - it provides an easy way for a plugin
 to access the metadata about itself (or another plugin) using the actual
 plugin file as a reference point.

 {{{get_bloginfo}}} can be so effortless because it works for the whole
 blog it does not need a point of reference - anything that provides the
 info for a plugin needs a point of reference.

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


More information about the wp-trac mailing list