WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Use Google Libraries] WP 2.9.1 Postbox.js .sortable undefined error (2 posts)

  1. KZeni
    Member
    Posted 4 years ago #

    If you have this plugin enabled on WordPress 2.9.1, it breaks the visual editor. Try adding a tag from a post edit page... it doesn't work due to a JavaScript error.

    It seems that WordPress 2.9.1 calls the jQuery UI scripts more efficiently than before. Instead of simply calling for the core jQueryUI file, it calls each bundle (tabs, sortable, resizable, etc.) only when needed.

    Problem is that this plugin only accounts for when the jquery-ui-core is called, and leaves the jquery-ui-sortable BLANK so nothing is called. Same scenario applies to the scriptaculous library.

    A temporary fix is to simply call the core for each individual bundle rather than have them be missing when they're being called. That is, until Google hosts the individual bundles.

    http://wordpress.org/extend/plugins/use-google-libraries/

  2. Jason Penney
    Member
    Posted 4 years ago #

    This is not at all how it works. The plugin doesn't touch the prerequisite handling as defined by WordPress core at all. Since all the individual bundles rely on the core bundle calling wp_enqueue_script() on any of them causes the others to automatically be loaded.

    You are misinterpreting what you're seeing in the source. It leaves all the smaller bundles src attribute blank because that file doesn't exist on Google's servers. But including any one of them when this plugin is active will include the core bundle, which has been replaced with the single combined file. I've tested for this issue and can not reproduce it.

Topic Closed

This topic has been closed to new replies.

About this Topic