• I experienced a problem with this plugin conflicting with the Theme My Login plugin whereby scripts enqueued by TML were not being output in the code.

    On close inspection it appears you are using the action handle “print_footer_scripts” on line 22 of glg-functions.php in order to output JavaScript code into the footer.

    The action “print_footer_scripts” is incorrect – it should be “wp_print_footer_scripts” – I’m not too sure how or why it works in the first place as print_footer_scripts is a filter not an action and should return a Boolean value to dictate whether footer scripts should be printed or not.

    I have changed the action call to:

    add_action( 'wp_print_footer_scripts', 'glg_frontend_wp_footer' );

    in the copy I have on one of my sites and all works fine but if you were able to verify and test this, then add it to the plugin core that would be great – and hopefully save someone else a good few hours debugging.

    Thanks

    Mark

The topic ‘Incorrect footer scripts action handle’ is closed to new replies.