• Resolved pwnst

    (@pwnst)


    Hello,

    I updated to 3.4.2 few hours ago and I cant get my custom fields in posts to work. Every time I try to add a new custom field nothing happens. I got no problem in earlier versions.

    – I got no addons/plugins and I’ve tried without my functions.php.

    – I get the same result with Opera and Chrome.

    -Thanks

Viewing 3 replies - 16 through 18 (of 18 total)
  • Seriously I lost an day to this bug before I realised it was 3.4.2 causing the issue!

    What the hell!!!

    Anyway, thanks chris for your solution, however, am I missing something?

    I put this code into functions…

    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' );

    …and although I can actually add multiple custom fields in one go (as oppose to the bug where you can only add one at a time and you need to hit post update in order to apply it)

    I’m not seeing the freshly added custom post types appear before my eyes?

    I have to refresh the page (without hitting post update) in order to see my recently added custom fields?

    Is this correct? – as this is not an absolute fix for me, only a partial one.

    Thanks

    Thanks Chris. Worked like a champ.

    omg chris, may the ground you walk on be fraught with blessings. thank you so much that was driving me nuts!

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Custom fields in 3.4.2’ is closed to new replies.