Latest ThemeShift News

WordPress 3.4.2 Maintenance Release and Hotfix

→ September 10, 2012 in News

WordPress 3.4.2

Last Thursday September 6 the maintenance and security release WordPress 3.4.2 was announced . Here are the most important fixes from the list of bugs :

  • Fix some issues with older browsers in the administration area.
  • Fix an issue where a theme may not preview correctly, or its screenshot may not be displayed.
  • Improve plugin compatibility with the visual editor.
  • Address pagination problems with some category permalink structures.
  • Avoid errors with both oEmbed providers and trackbacks.
  • Prevent improperly sized header images from being uploaded.

Apart from that a few security issues that affected WordPress multisite installs have been fixed.

Hotfix 0.9

Unfortunately one important bug made it into this version. After updating to 3.4.2 it was not possible to update or create custom fields (see ticket here ). If you have already updated but need to work with custom fields, you can install the Hotfix plugin version 0.9 in order to fix this rather annoying bug.

You can also find the code of this mini plugin on Github :

<?php
/**
 * Plugin Name: Fix Custom Fields in WP 3.4.2
 * Version:     0.0.1
 * Plugin URI:  http://core.trac.wordpress.org/ticket/21829
 * Description: Implements a workaround for adding and updating custom fields in WordPress 3.4.2
 * Author:      
 * Author URI:  
 */

if ( ! function_exists( 'fix_custom_fields_in_wp342' ) ) {

	add_action( 'admin_footer-post.php',     'fix_custom_fields_in_wp342' );
	add_action( 'admin_footer-post-new.php', 'fix_custom_fields_in_wp342' );

	function fix_custom_fields_in_wp342() {

		if ( version_compare( $GLOBALS['wp_version'], '3.4.2', '!=' ) )
			return NULL;

		?>
		<script type="text/javascript">
			jQuery(document).delegate( '#addmetasub, #updatemeta', 'hover', function() {
				jQuery(this).attr('id', 'meta-add-submit');
			});
		</script>
		<?php
	}

}

Comments

  
  1. Thanks for this!

  2. JS

    It’s a very strange wordpress-bug. Thank you for your hotfix.

Leave a Comment