[wp-hackers] Tango Smilies for the win

Dr. Mike Wendell theapparatus at gmail.com
Mon Jun 18 16:46:43 GMT 2007


On 6/18/07, Jeff Waugh <jdub at perkypants.org> wrote:
> <quote who="Dr. Mike Wendell">
>
> > May want to check that as I believe Donncha has changed the code now to
> > have the plugin subdirectory an internal variable:
> >
> > http://trac.mu.wordpress.org/changeset/919
>
> That at least provides a non-magic-string way of getting the directory name,
> but plugin authors still have to write code to figure out where their plugin
> is installed on the filesystem and as an URL path (which is easy enough with
> dirname(__FILE__), but it's still up to the plugin author -- there's no dumb
> "where is my plugin, I don't care if I'm on WPSO or WPMU!" API that everyone
> can use in ignorant bliss).

I hate bottom posting.

What about doing it like Donncha does it and checks to see if the
variable is defined?  If I understand it correctly, that variable is
only used in wpmu.

-- 
Blog: http://drmikessteakdinner.com
Kim Possible: Remixed: http://kimpossibleremixed.com
Get your own free hosted WordPress Blog today: http://daria.be


More information about the wp-hackers mailing list