Support » Plugins » [Plugin: Use Google Libraries] WP 2.9.1 Postbox.js .sortable undefined error

  • Resolved KZeni


    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.

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Use Google Libraries] WP 2.9.1 Postbox.js .sortable undefined error’ is closed to new replies.