2012-01-27, 02:40:44
Which plugins are installed? Some plugins break content filters.
Here is my known good content test plugin.
Here is my known good content test plugin.
Code:
<?php
/*
Content Filter Test
*/
# get correct id for plugin
$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 a', # 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 FILTER TEST BEGIN" . $content . "CONTENT FILTER TEST END";
}
function debug_content_show() {
echo '<p>I append a test string to content data using a content filter</p>';
}
?>