2011-12-09, 04:34:41
It seems you cannot disable content filter plugins.
I removed all plugins, wrote a test content filter, and confirmed I cannot disable it in the plugin manager.
There is no $live_plugins check in add_filters() in plugin_functions as there is in add_actions.
I removed all plugins, wrote a test content filter, and confirmed I cannot disable it in the plugin manager.
Code:
<?php
/*
*/
$thisfile=basename(__FILE__, ".php");
# register plugin
register_plugin(
$thisfile, # ID of plugin, should be filename minus php
'Content Filter', # Title of plugin
'1.0', # Version of plugin
'Shawn Alverson', # Author of plugin
'', # Author URL
'Test content filters', # Plugin Description
'', # Page type of plugin
'' # Function that displays content
);
# activate hooks
add_filter('content','debug_content');
function debug_content($content) {
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
return $content . "CONTENT FILTER TEST";
}
?>
There is no $live_plugins check in add_filters() in plugin_functions as there is in add_actions.