Version Description
- Fix a bug in WP 3.1 that caused some taxonomy query manipulations (like excluding categories) to not work like they did before.
Download this release
Release Info
| Developer | markjaquith |
| Plugin | |
| Version | 0.4 |
| Comparing to | |
| See all releases | |
Code changes from version 0.3 to 0.4
- hotfix.php +13 -1
- readme.txt +16 -4
hotfix.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 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.
|
| 6 |
Author: Mark Jaquith
|
| 7 |
Author URI: http://coveredwebservices.com/
|
| 8 |
*/
|
|
@@ -13,6 +13,9 @@ function wp_hotfix_init() {
|
|
| 13 |
$hotfixes = array();
|
| 14 |
|
| 15 |
switch ( $wp_version ) {
|
|
|
|
|
|
|
|
|
|
| 16 |
case '3.0.5' :
|
| 17 |
$hotfixes = array( '305_comment_text_kses' );
|
| 18 |
break;
|
|
@@ -34,3 +37,12 @@ function wp_hotfix_305_comment_text_kses() {
|
|
| 34 |
if ( is_admin() )
|
| 35 |
add_filter( 'comment_text', 'wp_kses_post' );
|
| 36 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.4
|
| 6 |
Author: Mark Jaquith
|
| 7 |
Author URI: http://coveredwebservices.com/
|
| 8 |
*/
|
| 13 |
$hotfixes = array();
|
| 14 |
|
| 15 |
switch ( $wp_version ) {
|
| 16 |
+
case '3.1' :
|
| 17 |
+
$hotfixes = array( '310_parsed_tax_query' );
|
| 18 |
+
break;
|
| 19 |
case '3.0.5' :
|
| 20 |
$hotfixes = array( '305_comment_text_kses' );
|
| 21 |
break;
|
| 37 |
if ( is_admin() )
|
| 38 |
add_filter( 'comment_text', 'wp_kses_post' );
|
| 39 |
}
|
| 40 |
+
|
| 41 |
+
function wp_hotfix_310_parsed_tax_query() {
|
| 42 |
+
add_filter( 'pre_get_posts', 'wp_hotfix_310_parsed_tax_query_pre_get_posts' );
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
function wp_hotfix_310_parsed_tax_query_pre_get_posts( $q ) {
|
| 46 |
+
@$q->parsed_tax_query = false; // Force it to be re-parsed.
|
| 47 |
+
return $q;
|
| 48 |
+
}
|
readme.txt
CHANGED
|
@@ -1,18 +1,21 @@
|
|
| 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 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 |
|
|
@@ -32,6 +35,9 @@ Read the "Complete Hotfix List" section in the description. A later version of t
|
|
| 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 |
|
|
@@ -44,6 +50,9 @@ Read the "Complete Hotfix List" section in the description. A later version of t
|
|
| 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 |
|
|
@@ -52,5 +61,8 @@ Allows you to see safe HTML in the admin.
|
|
| 52 |
|
| 53 |
== Complete Hotfix List ==
|
| 54 |
|
|
|
|
|
|
|
|
|
|
| 55 |
* **WordPress 3.0.5**
|
| 56 |
* Prevent KSES from overzealously stripping images and other advanced HTML from Administrator/Editor comments on display.
|
| 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.4
|
| 7 |
|
| 8 |
+
Provides unofficial fixes for selected WordPress bugs, so you don't have to wait for the next WordPress core release.
|
| 9 |
|
| 10 |
== Description ==
|
| 11 |
|
| 12 |
+
This unofficial 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.1**
|
| 17 |
+
* Fix a bug that caused some taxonomy query manipulations (like excluding categories) to not work like they did before.
|
| 18 |
+
|
| 19 |
* **WordPress 3.0.5**
|
| 20 |
* Prevent KSES from overzealously stripping images and other advanced HTML from Administrator/Editor comments on display.
|
| 21 |
|
| 35 |
|
| 36 |
== Changelog ==
|
| 37 |
|
| 38 |
+
= 0.4 =
|
| 39 |
+
* Fix a bug in WP 3.1 that caused some taxonomy query manipulations (like excluding categories) to not work like they did before.
|
| 40 |
+
|
| 41 |
= 0.3 =
|
| 42 |
* Adds a filter, and fixes a PHP warning for people on versions with no hotfixes available.
|
| 43 |
|
| 50 |
* Hotfix for WP 3.0.5 comment text KSES overzealousness.
|
| 51 |
|
| 52 |
== Upgrade Notice ==
|
| 53 |
+
= 0.4 =
|
| 54 |
+
Upgrade if you're running WordPress 3.1 to fix a bug with taxonomy query manipulations.
|
| 55 |
+
|
| 56 |
= 0.3 =
|
| 57 |
If you're not running WordPress 3.0.5 and you're getting a "Line 19" error, this update will fix that.
|
| 58 |
|
| 61 |
|
| 62 |
== Complete Hotfix List ==
|
| 63 |
|
| 64 |
+
* **WordPress 3.1**
|
| 65 |
+
* Fix a bug that caused some taxonomy query manipulations (like excluding categories) to not work like they did before.
|
| 66 |
+
|
| 67 |
* **WordPress 3.0.5**
|
| 68 |
* Prevent KSES from overzealously stripping images and other advanced HTML from Administrator/Editor comments on display.
|
