Title: Enqueued scripts / styles getting WordPress version
Last modified: August 21, 2016

---

# Enqueued scripts / styles getting WordPress version

 *  Resolved [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/enqueued-scripts-styles-getting-wordpress-version/)
 * G’day again,
 * Because I’m peering closely at the output of a new custom theme, I just noticed
   that EM and EM-Pro scripts and styles are all being enqueued with the default
   version string, being the WordPress version number. This could cause some people
   a little grief if scripts / styles are cached by visitors (or admins) and thus
   get out of synch with the PHP (or AJAX back-ends) they are supporting.
 * I’d suggest you use `EM_VERSION` and `EM_PRO_MIN_VERSION` version strings, which
   will act as cache busters when new versions are installed.
 * cheers,
    Ross
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/enqueued-scripts-styles-getting-wordpress-version/#post-3877127)
 * thanks for this, we will going to look into this.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/enqueued-scripts-styles-getting-wordpress-version/#post-3877205)
 * funnily enough, I’m just about done with a big change to how the event booking
   tickets ui works (getting rid of the jquery dialog), and I was thinking of going
   that way.
 * sadly, this isn’t 100% reliable though, e.g. cloudfront doesn’t take querystrings
   into account for js files, but hopefully it’ll help!
 *  Thread Starter [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/enqueued-scripts-styles-getting-wordpress-version/#post-3877206)
 * G’day Marcus,
 * That’s true about CloudFront only if you [configure it to not forward query strings](http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html).
   Frankly, anyone setting it up like that deserves to get caching problems 🙂
 * Remember, cache invalidation is one of the two hardest problems in computing 
   science, the others being naming things, and off-by-one errors…
 * cheers,
    Ross
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/enqueued-scripts-styles-getting-wordpress-version/#post-3877207)
 * afaik that’s the default setup.
 * Based on that, I’m guessing in most cases ppl don’t bother since it’s the default
   setting in CF (I must admit, on many sites I don’t either :)).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Enqueued scripts / styles getting WordPress version’ is closed to new
replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/enqueued-scripts-styles-getting-wordpress-version/#post-3877207)
 * Status: resolved