Support » Plugin: Table of Contents Plus » Correctly enqueue scripts

  • keithdevon

    (@keithdevon)


    In your toc.php file you have the following on line 126:

    add_action( 'init', array(&$this, 'init') );

    This should use the wp_enqueue_scripts action, like so:

    add_action( 'wp_enqueue_scripts', array(&$this, 'init') );

    The incorrect addition of scripts was breaking properly enqueued scripts on my site.

    http://wordpress.org/extend/plugins/table-of-contents-plus/

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

    (@conjur3r)

    I’m only registering the scripts on init. I’m enqueueing them on wp_print_styles and template_redirect. Thanks for raising it, I’ll take a closer look though.

Viewing 1 replies (of 1 total)
  • The topic ‘Correctly enqueue scripts’ is closed to new replies.