Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #330392
    Jeff Farthing
    Member
    Post count: 11

    I have found a bug in Dante’s code, located in functions.php starting at line 223.

    The code registers many scripts, using jquery as a dependency. The problem with this is, wp_register_script() requires the $deps parameter to be an array, or it is simply discarded. So, jQuery never gets enqueued/loaded because there is no proper dependency set up.

    Previous versions of Dante did not suffer from this problem, even though they are coded incorrectly as well, because they explicitly enqueued jQuery.

    #330405
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Thanks for the heads up. If you replace 'jquery' by array( 'jquery' ) does it work?
    Thanks

    -Rui

    #330406
    Jeff Farthing
    Member
    Post count: 11

    Yes! And FYI, this is the issue/solution for this: http://www.swiftideas.com/forums/topic/jquery-not-properly-included/

    #330407
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Thanks Jeff, we will change this.
    -Rui

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register