• Resolved Alexey

    (@asel)


    Replace obsolete wp_print_scripts() in wp_head action with wp_enqueue_scripts()

    All my scripts load in footer, but because of wp_print_scripts, jquery.js loads in <head>. It is terribly bad.
    Right now I’am using
    remove_action(‘wp_head’, ‘poll_head_scripts’);
    to fix this issue. But it took one hour of my life to identify the enemy.

    Lester Chan get rid of bad bad code.

    https://www.ads-software.com/plugins/wp-polls/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get rid of wp_print_scripts()’ is closed to new replies.