[wp-hackers] Request new function: get_plugininfo()

Mike Purvis mike at uwmike.com
Thu Aug 17 02:04:55 GMT 2006


It's a good idea, I approve. My one other request would be for a
plugin to have a way to get its own version number. Obviously you
wouldn't want to have to parse the thing every time; ideally it would
be in the same serialized array that stores the list of active
plugins. Of course, you'd have to keep the two in sync, which might
mean some other hijinxs involving the modification date on the file or
something.

All around, perhaps it's just not worth it. But it would be nice--in
the spirit of staying DRY--for a plugin to know its own version,
without it being a separate variable.

Mike




On 8/16/06, Robin Adrianse <shorty114 at shorty114.net> wrote:
> I think he's looking for opinions on whether this would be a good idea and
> whether it would be of good use, before he makes the effort to make it an
> official request with a Trac ticket.
>
> On 8/16/06, Craig <nuclearmoose at gmail.com> wrote:
> >
> > Have you posted this as an enhancement request on the bug tracker?
> > http://trac.wordpress.org
> >
> > Craig.
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list