Note To Wordpress Guys: Version 3.42 Has Bugs In The Custom Fields.

contract

::\\\ Motivªtion ///::
Dec 28, 2011
1,918
33
0
California, USA
Just realized this, wish I hadn't upgraded.. Just wanted to point it out. Spent an hour trying to figure out what I did wrong in the code only to realize it was Wordpress itself. Then spent another 15 min only to realize everyone was saying to get the HotFix plug-in but I hate adding new plug-ins, but found a code version that goes into functions.php

Here's the fix:

function fix_custom_fields_in_wp342() {
global $wp_version, $hook_suffix;

if ( '3.4.2' == $wp_version && in_array( $hook_suffix, array( 'post.php', 'post-new.php' ) ) ) : ?>
<script type="text/javascript">
jQuery(document).delegate( '#addmetasub, #updatemeta', 'hover focus', function() {
jQuery(this).attr('id', 'meta-add-submit');
});
</script>
<?php
endif;
}
add_action( 'admin_print_footer_scripts', 'fix_custom_fields_in_wp342' );

I realize this prob helps no one, but wanted to put it out there..