Version Description
- Adds a filter, and fixes a PHP warning for people on versions with no hotfixes available.
Download this release
Release Info
Developer | markjaquith |
Plugin | Hotfix |
Version | 0.3 |
Comparing to | |
See all releases |
Code changes from version 0.2 to 0.3
- hotfix.php +7 -3
- readme.txt +7 -2
hotfix.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Hotfix
|
4 |
-
Description: Provides "hotfixes" for
|
5 |
-
Version: 0.
|
6 |
Author: Mark Jaquith
|
7 |
Author URI: http://coveredwebservices.com/
|
8 |
*/
|
@@ -10,13 +10,17 @@ Author URI: http://coveredwebservices.com/
|
|
10 |
function wp_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 |
-
|
|
|
|
|
20 |
call_user_func( 'wp_hotfix_' . $hotfix );
|
21 |
}
|
22 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Hotfix
|
4 |
+
Description: Provides "hotfixes" for selected WordPress bugs, so you don't have to wait for the next WordPress core release. Keep the plugin updated!
|
5 |
+
Version: 0.3
|
6 |
Author: Mark Jaquith
|
7 |
Author URI: http://coveredwebservices.com/
|
8 |
*/
|
10 |
function wp_hotfix_init() {
|
11 |
global $wp_version;
|
12 |
|
13 |
+
$hotfixes = array();
|
14 |
+
|
15 |
switch ( $wp_version ) {
|
16 |
case '3.0.5' :
|
17 |
$hotfixes = array( '305_comment_text_kses' );
|
18 |
break;
|
19 |
}
|
20 |
|
21 |
+
$hotfixes = apply_filters( 'wp_hotfixes', $hotfixes );
|
22 |
+
|
23 |
+
foreach ( (array) $hotfixes as $hotfix ) {
|
24 |
call_user_func( 'wp_hotfix_' . $hotfix );
|
25 |
}
|
26 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.
|
7 |
|
8 |
Provides fixes for selected WordPress bugs, so you don't have to wait for the next WordPress core release.
|
9 |
|
@@ -28,10 +28,13 @@ Fixes are specific to your version of WordPress. It may be that your version of
|
|
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.
|
@@ -41,6 +44,8 @@ Read the "Hotfix List" section in the description. A later version of the plugin
|
|
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.
|
3 |
Tags: hotfix, bugs, wordpress, update
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.1
|
6 |
+
Stable tag: 0.3
|
7 |
|
8 |
Provides fixes for selected WordPress bugs, so you don't have to wait for the next WordPress core release.
|
9 |
|
28 |
|
29 |
= How do I know which hotfixes are being applied to my version? =
|
30 |
|
31 |
+
Read the "Complete 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.3 =
|
36 |
+
* Adds a filter, and fixes a PHP warning for people on versions with no hotfixes available.
|
37 |
+
|
38 |
= 0.2 =
|
39 |
* Better 3.0.5 comment text KSES fix for the admin. Allows you to see safe HTML in the admin.
|
40 |
* Remove the cws_ prefixes. This may become official.
|
44 |
* Hotfix for WP 3.0.5 comment text KSES overzealousness.
|
45 |
|
46 |
== Upgrade Notice ==
|
47 |
+
= 0.3 =
|
48 |
+
If you're not running WordPress 3.0.5 and you're getting a "Line 19" error, this update will fix that.
|
49 |
|
50 |
= 0.2 =
|
51 |
Allows you to see safe HTML in the admin.
|