Version Description
- Better 3.0.5 comment text KSES fix for the admin. Allows you to see safe HTML in the admin.
- Remove the cws_ prefixes. This may become official.
Download this release
Release Info
Developer | markjaquith |
Plugin | Hotfix |
Version | 0.2 |
Comparing to | |
See all releases |
Code changes from version 0.1 to 0.2
- hotfix.php +8 -7
- readme.txt +20 -14
hotfix.php
CHANGED
@@ -2,12 +2,12 @@
|
|
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.
|
6 |
Author: Mark Jaquith
|
7 |
Author URI: http://coveredwebservices.com/
|
8 |
*/
|
9 |
|
10 |
-
function
|
11 |
global $wp_version;
|
12 |
|
13 |
switch ( $wp_version ) {
|
@@ -17,15 +17,16 @@ function cws_hotfix_init() {
|
|
17 |
}
|
18 |
|
19 |
foreach ( $hotfixes as $hotfix ) {
|
20 |
-
call_user_func( '
|
21 |
}
|
22 |
}
|
23 |
|
24 |
-
add_action( 'init', '
|
25 |
|
26 |
/* And now, the hotfixes */
|
27 |
|
28 |
-
function
|
29 |
-
|
30 |
-
|
|
|
31 |
}
|
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.2
|
6 |
Author: Mark Jaquith
|
7 |
Author URI: http://coveredwebservices.com/
|
8 |
*/
|
9 |
|
10 |
+
function wp_hotfix_init() {
|
11 |
global $wp_version;
|
12 |
|
13 |
switch ( $wp_version ) {
|
17 |
}
|
18 |
|
19 |
foreach ( $hotfixes as $hotfix ) {
|
20 |
+
call_user_func( 'wp_hotfix_' . $hotfix );
|
21 |
}
|
22 |
}
|
23 |
|
24 |
+
add_action( 'init', 'wp_hotfix_init' );
|
25 |
|
26 |
/* And now, the hotfixes */
|
27 |
|
28 |
+
function wp_hotfix_305_comment_text_kses() {
|
29 |
+
remove_filter( 'comment_text', 'wp_kses_data' );
|
30 |
+
if ( is_admin() )
|
31 |
+
add_filter( 'comment_text', 'wp_kses_post' );
|
32 |
}
|
readme.txt
CHANGED
@@ -1,17 +1,22 @@
|
|
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.
|
7 |
|
8 |
-
Provides
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
This plugin provides
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
== Installation ==
|
17 |
|
@@ -23,23 +28,24 @@ The fixes are specific to your version of WordPress. It may be that your version
|
|
23 |
|
24 |
= How do I know which hotfixes are being applied to my version? =
|
25 |
|
26 |
-
Read the "Hotfix List" section
|
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.
|
37 |
-
|
38 |
-
|
39 |
-
== Hotfix List ==
|
40 |
-
|
41 |
-
The following hotfixes are applied:
|
42 |
|
43 |
-
|
44 |
|
45 |
-
*
|
|
1 |
=== Hotfix ===
|
2 |
+
Contributors: markjaquith, wordpressdotorg
|
3 |
Tags: hotfix, bugs, wordpress, update
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.1
|
6 |
+
Stable tag: 0.2
|
7 |
|
8 |
+
Provides fixes for selected WordPress bugs, so you don't have to wait for the next WordPress core release.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
+
This plugin provides fixes for selected 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 a few selected fixes more quickly.
|
13 |
|
14 |
+
Recent fixes:
|
15 |
+
|
16 |
+
* **WordPress 3.0.5**
|
17 |
+
* Prevent KSES from overzealously stripping images and other advanced HTML from Administrator/Editor comments on display.
|
18 |
+
|
19 |
+
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!
|
20 |
|
21 |
== Installation ==
|
22 |
|
28 |
|
29 |
= How do I know which hotfixes are being applied to my version? =
|
30 |
|
31 |
+
Read the "Hotfix List" section in the description. A later version of the plugin may list the hotfixes in a special WordPress admin page.
|
32 |
|
33 |
== Changelog ==
|
34 |
|
35 |
+
= 0.2 =
|
36 |
+
* Better 3.0.5 comment text KSES fix for the admin. Allows you to see safe HTML in the admin.
|
37 |
+
* Remove the cws_ prefixes. This may become official.
|
38 |
+
|
39 |
= 0.1 =
|
40 |
* First version
|
41 |
* Hotfix for WP 3.0.5 comment text KSES overzealousness.
|
42 |
|
43 |
== Upgrade Notice ==
|
44 |
|
45 |
+
= 0.2 =
|
46 |
+
Allows you to see safe HTML in the admin.
|
|
|
|
|
|
|
|
|
47 |
|
48 |
+
== Complete Hotfix List ==
|
49 |
|
50 |
+
* **WordPress 3.0.5**
|
51 |
+
* Prevent KSES from overzealously stripping images and other advanced HTML from Administrator/Editor comments on display.
|