Using Wordpress 3.4.2, the wp_enqueue_script documentation seems to indicate that jQuery UI libraries can be loaded simply by referencing their handles. I have the following code with no prior wp_register_script():
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
The enqueue for 'jquery' works fine, but the enqueue for 'jquery-ui-core' isn't working.
I realize that I can register and load script explicitly using Google CDN (or make explicit references to library elements in Wordpress install) ... but again documentation makes me think I shouldn't have to do this w/ Wordpress current version.
Anyone know why this doesn't work?
jquery-ui-coredoes not reference the whole core incl. all core plugins, but just the base. Other than that, the above should work and the syntax is correct.wp_enqueue_script( 'jquery-ui-core' )not cause any scripts to be enqueued? Or are you missing certain UI libraries? Or something else? What do you expect to happen, but isn't happening? Or what is happening unexpectedly or differently from what you expected to happen?