I am getting function deactivate_plugins does not exist error when calling this function
function deactivateSelf(){
deactivate_plugins(RSD_PLUGIN, true); //gives error: function deactivate_plugins does not exist
header("Location: plugins.php?deactivate=true"); //redirect to plugin management with message
die();
}
- the function
deactivate_pluginsis on the server in/wp-admin/wp-includes/plugin.php - the function deactivateSelf works on my developer's computer but not on my linode server
- I downloaded http://www.turnkeylinux.org/wordpress, which should have pretty standard configuration and I got the same error. I tried to upgrade wp to the latest version and still got the same error.
Any idea how to make it work?