• I’ve been trying to figure out where my Admin bar went on one installation – the gap at the top of the site is still there, but… no Admin bar.

    Turns out this seems to be the offending line of code:
    plugins/magic-fields-2/js/mf_set_categories.js:2: $(‘#adminmenuback,#adminmenuwrap,#wpadminbar,#footer’).css( ‘display’, ‘none’ );

    What is that about? Why is it running on the front end in the first place?

    http://wordpress.org/plugins/magic-fields-2/

Viewing 1 replies (of 1 total)
  • Plugin Author hunk

    (@hunk)

    this only have running in admin area and only for the page spacial of MF for set default categories for post type.

    this is a condition:
    if( !empty( $_GET[‘mf_action’] ) && $_GET[‘mf_action’] == “set_categories” ) {
    wp_enqueue_script( ‘mf_set_categories’, MF_BASENAME.’js/mf_set_categories.js’, array(‘mf_admin’) );
    }

Viewing 1 replies (of 1 total)

The topic ‘Magic Fields hides my Admin toolbar??’ is closed to new replies.