[wp-hackers] Degrading gracefully with deactivated plugins?

Kimmo Suominen kim at tac.nyc.ny.us
Mon Mar 28 21:49:00 GMT 2005


On Mon, Mar 28, 2005 at 11:36:08PM +0200, Matthew Mullenweg wrote:
> Owen Winkler wrote:
> >Can we please not add any of these strange functions and just provide 
> >better documentation for switching themes, upgrading, and applying 
> >plugins, and be sure that authors of themes and plugins adhere to 
> >developer guidelines regarding these issues?  
> 
> Many plugin functions (time_since, etc) could be embedded directly in 
> theme files, which would eliminate any bundling issues. Perhaps we could 
> make this more formal by having a file (extra-functions.php) that was 
> loaded with plugins if it existed for a theme.

I like this idea.  I think it would be most useful if plugins were all
loaded first, then extra-functions.php from the theme.  This way it is
possible to check for plugins in extra-functions.php, and provide dummy
replacements for things that are not enabled, so that the theme can be
displayed while some functionality might be missing.

Regards,
+ Kim
-- 
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>



More information about the wp-hackers mailing list