Support Forum
My little plugin has a js file I made and I use wp_enqueue_script to load it, and I've chosen jquery ui dialog as it's dep. Following SP's lead, I had the dep as jquery.ui.dialog (note the dots). Now with the recent js related commits, SP has dropped the dots for hypens like this: jquery-ui-dialog. And broke my plugin.
Is this the way it will be for now on? Is it dependent on WP version, or will it be this way a crossed the board for jquery related js?
Just asking 🙂
well, there you go... one of those not the best things we did with loading js... there is no need for us to do it the old way... we used to have the hard coded path to the wp js file... so when wp changed the location, we had to change our code... we really should have just been enqueueing the already registered wp script...
that is what we do now... so you too should make your plugin dependent on the wp jquery ui dialog, not ours...
and yes, jquery-ui-dialog is the name wp assigned when they registered the script... so you can do dependancy or just force its loading with
wp_enqueue_script('jquery-ui-dialog');
Visit Cruise Talk Central and Mr Papa's World
oh, didnt take it that way... no need to feeel bad!
was a bit surprised we were doing it the hard way when I went through it this weekend... much better, I think, now...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)