WordPress.org

Ready to get started?Download WordPress

Forums

Are there any changes to jQuery in WP 2.9? (2 posts)

  1. infected
    Member
    Posted 4 years ago #

    Hi!

    As asked in the title: Are there any changes made to the use of jQuery in WP 2.9? I used the jQuery idTabs in my sidebar. Until upgrading to WP 2.9 it worked fine but now it doesn´t. When i take a look into my source code there will be no js loaded like in 2.8.6.

    To get it working in 2.8 i added the following code into my functions.php:

    <?php
    $themes = get_themes();
    $script = $themes[get_current_theme()]['Template Dir'] . "/js/jquery.idTabs.min.js";
    if ( file_exists(WP_CONTENT_DIR . $script) ) {
    wp_enqueue_script('jquery.idTabs.min.js', WP_CONTENT_URL . $script, array('jquery'));
    }
    ?>

    The js file is still at the same place but it will not be loaded. I didn´t change anything related to my theme. Any ideas?

  2. scribu
    Member
    Posted 4 years ago #

    I think jQuery has been upgraded from 1.2 to 1.3.

    In WP 3.0, jQuery 1.4 will be used.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.