Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
plugin issues
#4
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.

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.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
plugin issues - by shawn_a - 2011-11-18, 07:22:53
plugin issues - by Connie - 2011-11-18, 07:58:24
plugin issues - by shawn_a - 2011-11-18, 23:56:33
plugin issues - by shawn_a - 2011-12-09, 04:34:41
plugin issues - by n00dles101 - 2011-12-09, 05:03:13
plugin issues - by shawn_a - 2011-12-09, 05:37:24
plugin issues - by n00dles101 - 2011-12-09, 06:44:31



Users browsing this thread: 1 Guest(s)