Hotfix - Version 0.9

Version Description

  • Fix adding and updating Custom Fields.
Download this release

Release Info

Developer nacin
Plugin Icon wp plugin Hotfix
Version 0.9
Comparing to
See all releases

Code changes from version 0.8 to 0.9

Files changed (2) hide show
  1. hotfix.php +20 -1
  2. readme.txt +13 -5
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.8
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.3' :
38
  $hotfixes = array( '330_no_wp_print_styles_in_admin', '330_no_json_encode_load_scripts' );
39
  break;
@@ -132,3 +135,19 @@ function wp_hotfix_330_no_json_encode_load_scripts() {
132
  if ( ! defined( 'CONCATENATE_SCRIPTS' ) )
133
  define( 'CONCATENATE_SCRIPTS', false );
134
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.9
6
  Author: Mark Jaquith
7
  Author URI: http://coveredwebservices.com/
8
  */
34
  $hotfixes = array();
35
 
36
  switch ( $wp_version ) {
37
+ case '3.4.2' :
38
+ $hotfixes = array( '342_custom_fields' );
39
+ break;
40
  case '3.3' :
41
  $hotfixes = array( '330_no_wp_print_styles_in_admin', '330_no_json_encode_load_scripts' );
42
  break;
135
  if ( ! defined( 'CONCATENATE_SCRIPTS' ) )
136
  define( 'CONCATENATE_SCRIPTS', false );
137
  }
138
+
139
+ function wp_hotfix_342_custom_fields() {
140
+ add_action( 'admin_footer-post.php', 'wp_hotfix_342_custom_fields_action' );
141
+ add_action( 'admin_footer-post-new.php', 'wp_hotfix_342_custom_fields_action' );
142
+ }
143
+
144
+ function wp_hotfix_342_custom_fields_action() {
145
+ ?><script>
146
+ jQuery(document).ready( function($) {
147
+ $('#postcustomstuff').on('hover focus', '#addmetasub, #updatemeta', function() {
148
+ $(this).attr('id', 'meta-add-submit');
149
+ });
150
+ });
151
+ </script>
152
+ <?php
153
+ }
readme.txt CHANGED
@@ -2,8 +2,8 @@
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,13 +13,13 @@ This unofficial plugin provides fixes for selected WordPress bugs, so you don't
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,6 +35,9 @@ Fixes are specific to your version of WordPress. It may be that your version of
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.
@@ -64,6 +67,9 @@ Read the "Complete Hotfix List" section in the description. A later version of t
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
 
@@ -83,6 +89,8 @@ If you're not running WordPress 3.0.5 and you're getting a "Line 19" error, this
83
  Allows you to see safe HTML in the admin.
84
 
85
  == Complete Hotfix List ==
 
 
86
 
87
  * **WordPress 3.3**
88
  * Prevent plugin and theme styles from bleeding into the dashboard
2
  Contributors: markjaquith, nacin
3
  Tags: hotfix, bugs, wordpress, update
4
  Requires at least: 3.0
5
+ Tested up to: 3.4.2
6
+ Stable tag: 0.9
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.4.2**
17
+ * Fix adding and updating Custom Fields
18
+
19
  * **WordPress 3.3**
20
  * Prevent plugin and theme styles from bleeding into the dashboard
21
  * Work around a bug for people without built-in JSON support
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.9 =
39
+ * Fix adding and updating Custom Fields.
40
+
41
  = 0.8 =
42
  * Prevent plugin and theme styles from bleeding into the dashboard.
43
  * Include JSON support for load-scripts.php.
67
  * Hotfix for WP 3.0.5 comment text KSES overzealousness.
68
 
69
  == Upgrade Notice ==
70
+ = 0.9 =
71
+ Upgrade if you are having trouble with Custom Fields with WordPress 3.4.2.
72
+
73
  = 0.8 =
74
  Upgrade if you are having JavaScript or styling issues in the WordPress Dashboard.
75
 
89
  Allows you to see safe HTML in the admin.
90
 
91
  == Complete Hotfix List ==
92
+ * **WordPress 3.4.2**
93
+ * Fix adding and updating Custom Fields
94
 
95
  * **WordPress 3.3**
96
  * Prevent plugin and theme styles from bleeding into the dashboard