Maybe someone has prior experience with this, but when I include the jQuery UI 1.8.9 file within my admin_head
I break the functionality of the dashboard (i.e. popup for adding featured image, drag and drop menu items, etc.). If I include 1.7.2, it doesn’t break anymore but then my great little calendar won’t work anymore.
So my questions is, currently (3.0.x),what is the best way to implement the jquery UI within admin pages without breaking everything?
(Other info: trying to add datepicker to a field within my custom post type)
Thank you!
Noel
WP 3.1 will come with jQuery UI 1.8 so the easiest solution would be to wait.
Also, it sounds like you’re outputting the script tag directly. You should try deregistering the bundled jQuery UI version and replacing it with your own.
This is done using wp_deregister_script() and wp_enqueue_script().
Thanks again scribu, here the working result for anyone interested (custom-admin is just my js for the datepicker):
What would be right way to load jQuery UI only on custom post type page?
is this correct way?