OK, I’ve fixed the plugin to work in WP 2.9+, but I’m unable to commit the updates to SVN
Update readme.txt
to the following:
=== Allow HTML in Category Descriptions ===
Contributors: arno_esterhuizen
Donate link: Sorry, none available at the moment. If you feel strongly about it, email me and we can work something out
Tags: categories, category descriptions, html, filter
Requires at least: 2.5
Tested up to: 2.9.1
Stable tag: trunk
This plugin allows you to use unfiltered HTML in your category descriptions by disabling WP filters
== Description ==
When you add text to the category description textarea and save the category, WordPress runs content filters that
strips out all but the most basic formatting tags.
This plugin disables those filters. Any html code you add to the category description will not be stripped out.
This plugin does not do anything other than disable the filters. It does not protect you from entering invalid HTML,
nor does it help you create WYSIWYG HTML. You can use the post or page composing screen to help you create the text
and formatting. Then switch to the 'code' tab and copy the HTML code into the category description field.
== Installation ==
1. Upload <code>html-in-category-descriptions.php</code> to the <code>/wp-content/plugins/</code> directory
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Paste or type HTML code in the category description and save.
1. Enjoy HTML in your category descriptions
== Frequently Asked Questions ==
= How do I contact you? =
1. **Email Address:** [email protected]
1. **Subject Line:** Question: WordPress Plugin: Allow HTML in Category Descriptions
And then update html-in-category-descriptions.php
to the following:
<?php
/*
Plugin Name: HTML in Category Descriptions
Version: 1.1
Plugin URI:
Description: Allows you to add HTML code in category descriptions
Author: Arno Esterhuizen
Author URI: [email protected]
*/
$filters = array('pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description');
foreach ( $filters as $filter ) {
remove_filter($filter, 'wp_filter_kses');
}
foreach ( array( 'term_description' ) as $filter ) {
remove_filter( $filter, 'wp_kses_data' );
}
?>
Cheers
Arno Esterhuizen