Hotfix - Version 0.8

Version Description

  • Prevent plugin and theme styles from bleeding into the dashboard.
  • Include JSON support for load-scripts.php.
Download this release

Release Info

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

Code changes from version 0.7 to 0.8

Files changed (2) hide show
  1. hotfix.php +22 -2
  2. readme.txt +19 -13
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.7
6
  Author: Mark Jaquith
7
  Author URI: http://coveredwebservices.com/
8
  */
@@ -34,6 +34,9 @@ function wp_hotfix_init() {
34
  $hotfixes = array();
35
 
36
  switch ( $wp_version ) {
 
 
 
37
  case '3.1.3' :
38
  $hotfixes = array( '313_post_status_query_string' );
39
  break;
@@ -111,4 +114,21 @@ if ( ! function_exists( 'json_decode' ) && ! function_exists( '_json_decode_obje
111
  $data = get_object_vars($data);
112
  return is_array($data) ? array_map(__FUNCTION__, $data) : $data;
113
  }
114
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.8
6
  Author: Mark Jaquith
7
  Author URI: http://coveredwebservices.com/
8
  */
34
  $hotfixes = array();
35
 
36
  switch ( $wp_version ) {
37
+ case '3.3' :
38
+ $hotfixes = array( '330_no_wp_print_styles_in_admin', '330_no_json_encode_load_scripts' );
39
+ break;
40
  case '3.1.3' :
41
  $hotfixes = array( '313_post_status_query_string' );
42
  break;
114
  $data = get_object_vars($data);
115
  return is_array($data) ? array_map(__FUNCTION__, $data) : $data;
116
  }
117
+ }
118
+
119
+ function wp_hotfix_330_no_wp_print_styles_in_admin() {
120
+ add_action( 'admin_init', 'wp_hotfix_330_no_wp_print_styles_in_admin_remove', 999 );
121
+ }
122
+
123
+ function wp_hotfix_330_no_wp_print_styles_in_admin_remove() {
124
+ remove_all_actions( 'wp_print_styles' );
125
+ }
126
+
127
+ function wp_hotfix_330_no_json_encode_load_scripts() {
128
+ $functions = get_defined_functions();
129
+ if ( in_array( 'json_encode', $functions['internal'] ) )
130
+ return;
131
+
132
+ if ( ! defined( 'CONCATENATE_SCRIPTS' ) )
133
+ define( 'CONCATENATE_SCRIPTS', false );
134
+ }
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Hotfix ===
2
- Contributors: markjaquith
3
  Tags: hotfix, bugs, wordpress, update
4
  Requires at least: 3.0
5
- Tested up to: 3.2.1
6
- Stable tag: 0.7
7
 
8
  Provides unofficial fixes for selected WordPress bugs, so you don't have to wait for the next WordPress core release.
9
 
@@ -13,18 +13,13 @@ This unofficial plugin provides fixes for selected WordPress bugs, so you don't
13
 
14
  Recent fixes:
15
 
 
 
 
 
16
  * **WordPress 3.2**
17
  * Include JSON support for people with funky PHP setups
18
 
19
- * **WordPress 3.1.3**
20
- * Fix a bug that caused `post_status` to malfunction if passed an array
21
-
22
- * **WordPress 3.1**
23
- * Fix a bug that caused some taxonomy query manipulations (like excluding categories) to not work like they did before.
24
-
25
- * **WordPress 3.0.5**
26
- * Prevent KSES from overzealously stripping images and other advanced HTML from Administrator/Editor comments on display.
27
-
28
  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!
29
 
30
  == Installation ==
@@ -40,8 +35,12 @@ Fixes are specific to your version of WordPress. It may be that your version of
40
  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.
41
 
42
  == Changelog ==
 
 
 
 
43
  = 0.7 =
44
- * Fix issue in version 0.6
45
 
46
  = 0.6 =
47
  * Include JSON support for people with funky PHP setups.
@@ -65,6 +64,9 @@ Read the "Complete Hotfix List" section in the description. A later version of t
65
  * Hotfix for WP 3.0.5 comment text KSES overzealousness.
66
 
67
  == Upgrade Notice ==
 
 
 
68
  = 0.7 =
69
  Upgrade if you're getting JSON-related errors.
70
 
@@ -82,6 +84,10 @@ Allows you to see safe HTML in the admin.
82
 
83
  == Complete Hotfix List ==
84
 
 
 
 
 
85
  * **WordPress 3.2**
86
  * Include JSON support for people with funky PHP setups
87
 
1
  === Hotfix ===
2
+ Contributors: markjaquith, nacin
3
  Tags: hotfix, bugs, wordpress, update
4
  Requires at least: 3.0
5
+ Tested up to: 3.3
6
+ Stable tag: 0.8
7
 
8
  Provides unofficial fixes for selected WordPress bugs, so you don't have to wait for the next WordPress core release.
9
 
13
 
14
  Recent fixes:
15
 
16
+ * **WordPress 3.3**
17
+ * Prevent plugin and theme styles from bleeding into the dashboard
18
+ * Work around a bug for people without built-in JSON support
19
+
20
  * **WordPress 3.2**
21
  * Include JSON support for people with funky PHP setups
22
 
 
 
 
 
 
 
 
 
 
23
  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!
24
 
25
  == Installation ==
35
  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.
36
 
37
  == Changelog ==
38
+ = 0.8 =
39
+ * Prevent plugin and theme styles from bleeding into the dashboard.
40
+ * Include JSON support for load-scripts.php.
41
+
42
  = 0.7 =
43
+ * Fix issue in version 0.6.
44
 
45
  = 0.6 =
46
  * Include JSON support for people with funky PHP setups.
64
  * Hotfix for WP 3.0.5 comment text KSES overzealousness.
65
 
66
  == Upgrade Notice ==
67
+ = 0.8 =
68
+ Upgrade if you are having JavaScript or styling issues in the WordPress Dashboard.
69
+
70
  = 0.7 =
71
  Upgrade if you're getting JSON-related errors.
72
 
84
 
85
  == Complete Hotfix List ==
86
 
87
+ * **WordPress 3.3**
88
+ * Prevent plugin and theme styles from bleeding into the dashboard
89
+ * Work around a bug for people without built-in JSON support
90
+
91
  * **WordPress 3.2**
92
  * Include JSON support for people with funky PHP setups
93