[wp-hackers] Admin menu hook

Kitty kitty at mookitty.co.uk
Thu Nov 25 05:58:14 UTC 2004


On Wed, 2004-11-24 at 21:58, Ryan Boren wrote:
> A folder under plugins would make for a single install location if we
> allow plugins to be loaded from directories under wp-content/plugins?
> Plugins that supply multiple files can install to a subdir, like themes
> do.  Only those files that contain a plugin header would show up in the
> plugin manager.  With everything under plugins/, all files could benefit
> from the admin.php bootstrap.

Interesting. but but then we'd wind up loading the extra files and
polluting global space (even if only the actual plugin file showed in
plugins.php). I've tried to keep as much as possible out of global space
in my stuff. I think the loading of the plugin file from plugins/ and
the rest from it's own directory is the saner choice.

I like wp-content/ because it's out of the way, and other subdirs are
already there. I've also settled on having my include files there too,
so that they're only loaded when one of my admin pages is showing.
Another anti-global space thing. I'd hate to have "large" code slowing
down the whole admin interface.

But this project is probably larger than most would attempt and is a
fairly specialised subsystem. But with the patch fully qualifying
wp-admin.css it opens up the possibilities of a more flexible approach.
-- 
Cheers,		     Blog: http://blog.mookitty.co.uk
Kitty		     PC Repair: http://www.girltech.net
		     WP Plugins: http://mookitty.co.uk/devblog
Support proactive security: http://www.openbsd.org/orders.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/hackers_wordpress.org/attachments/20041124/4e2d68ce/attachment.bin


More information about the hackers mailing list