Hotfix - Version 0.1

Version Description

  • First version
  • Hotfix for WP 3.0.5 comment text KSES overzealousness.

=

Download this release

Release Info

Developer markjaquith
Plugin Icon wp plugin Hotfix
Version 0.1
Comparing to
See all releases

Version 0.1

Files changed (2) hide show
  1. hotfix.php +31 -0
  2. readme.txt +45 -0
hotfix.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Hotfix
4
+ Description: Provides "hotfixes" for annoying WordPress bugs, so you don't have to wait for the next WordPress core release. Keep the plugin updated!
5
+ Version: 0.1
6
+ Author: Mark Jaquith
7
+ Author URI: http://coveredwebservices.com/
8
+ */
9
+
10
+ function cws_hotfix_init() {
11
+ global $wp_version;
12
+
13
+ switch ( $wp_version ) {
14
+ case '3.0.5' :
15
+ $hotfixes = array( '305_comment_text_kses' );
16
+ break;
17
+ }
18
+
19
+ foreach ( $hotfixes as $hotfix ) {
20
+ call_user_func( 'cws_hotfix_' . $hotfix );
21
+ }
22
+ }
23
+
24
+ add_action( 'init', 'cws_hotfix_init' );
25
+
26
+ /* And now, the hotfixes */
27
+
28
+ function cws_hotfix_305_comment_text_kses() {
29
+ if ( !is_admin() )
30
+ remove_filter( 'comment_text', 'wp_kses_data' );
31
+ }
readme.txt ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Hotfix ===
2
+ Contributors: markjaquith
3
+ Tags: hotfix, bugs, wordpress, update
4
+ Requires at least: 3.0
5
+ Tested up to: 3.1
6
+ Stable tag: 0.1
7
+
8
+ Provides "hotfixes" for annoying WordPress bugs, so you don't have to wait for the next WordPress core release.
9
+
10
+ == Description ==
11
+
12
+ This plugin provides "hotfixes" for annoying WordPress bugs, so you don't have to wait for the next WordPress core release. **This does not mean you can stop updating WordPress!** It just means that you'll get fixes faster.
13
+
14
+ The fixes are specific to your version of WordPress. It may be that your version of WordPress has no fixes. That's fine. Keep the plugin activated and updated, in case you need it for a subsequent version of WordPress.
15
+
16
+ == Installation ==
17
+
18
+ 1. [Click here](http://coveredwebservices.com/wp-plugin-install/?plugin=hotfix) to install and activate.
19
+
20
+ 2. Done! Just remember to keep the plugin up to date!
21
+
22
+ == Frequently Asked Questions ==
23
+
24
+ = How do I know which hotfixes are being applied to my version? =
25
+
26
+ Read the "Hotfix List" section below. A later version of the plugin will list the hotfixes in a special WordPress admin page.
27
+
28
+ == Changelog ==
29
+
30
+ = 0.1 =
31
+ * First version
32
+ * Hotfix for WP 3.0.5 comment text KSES overzealousness.
33
+
34
+ == Upgrade Notice ==
35
+
36
+ = 0.1 =
37
+ This is the first version.
38
+
39
+ == Hotfix List ==
40
+
41
+ The following hotfixes are applied:
42
+
43
+ **WordPress 3.0.5**
44
+
45
+ * Prevent WordPress from overzealously stripping images and other advanced HTML from administrator/editor comments on display.