I'm testing my plugin on a site with a fair amount of other plugins, and it seems something is preventing jquery-ui-tabs from loading with my plugin configuration screen. I was careful not to load any of our scripts on pages other than the actual plugin pages, but perhaps another plugin was not so generous. I'll isolate the plugin or configuration problem that may be causing the issue, but would like to find a way to handle the condition from within my plugin code.
I am loading the script while loading our own custom JS using:
wp_register_script( 'weever.js', plugins_url( 'static/js/weever.js', __FILE__ ), array( 'jquery', 'jquery-ui-core', 'jquery-ui-tabs', 'jquery-ui-sortable' ) );
Looking at a working site, this line is included, and a similar line is included on the non-working site also:
I also tried enqueuing the script explicitly with:
wp_enqueue_script( 'jquery-ui-tabs' );
with no effect. This error is still received:
Uncaught TypeError: Object #<Object> has no method 'tabs'
jQuery( "#tabs" ).tabs();
any thoughts as to why the script is being blocked from loading? Obviously I do not want to start loading my own version of the jquery-ui-tabs separately.