[wp-hackers] Degrading gracefully with deactivated plugins?

Jeff Minard jeff at jrm.cc
Sun Mar 27 18:05:06 GMT 2005


Robert Deaton wrote:
> The problem with the upgrading is that some users are suffering from
> having their plugins active and some are suffering for having them
> disabled. 

_cpf() is probably the better route to go. Mainly because this is not 
going to be just an "upgrade" issue. With all the great themes out now 
(140ish in the contest, more that aren't) people will be just popping 
them in and turning them on.

And if that theme uses a plugin you don't have, "ERROR".

And in this case, there would be an error on the _safe() function 
because it never was in their install of WP. Additionally, the _safe 
function would either need to be run every time (basically executing and 
parsing every plugin a person has) or some kind of function caching 
scheme - and that would probably take up a lot more time than "if 
function_exists" via a _cpf() call.

My two cents: _cpf();

Jeff


More information about the wp-hackers mailing list