Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to update JQuery & Prototype?

  • I’m running bbPress 0.9.0.6.

    I see that it includes *very* old releases of JQuery and Prototype.

    What’s the best way for me to update the included JavaScript files while also not modifying the base bbPress core files?

Viewing 2 replies - 1 through 2 (of 2 total)

  • deadlyhifi
    Participant

    @tomdebruin

    I’m running v1 so not sure if this works in 0.9 – but you follow the same pattern as WordPress.

    In your forum theme’s functions file deregister then register your new scrip.

    e.g.

    wp_deregister_script('jquery');
    wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', false, '1.4.2', true);
    wp_enqueue_script('jquery');

    See https://codex.wordpress.org/Function_Reference/wp_enqueue_script for more details


    deadlyhifi
    Participant

    @tomdebruin

    I’m running v1 so not sure if this works in 0.9 – but you follow the same pattern as WordPress.

    In your forum theme’s functions file deregister then register your new scrip.

    e.g.

    wp_deregister_script('jquery');
    wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', false, '1.4.2', true);
    wp_enqueue_script('jquery');

    See https://codex.wordpress.org/Function_Reference/wp_enqueue_script for more details

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar