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
andEM_PRO_MIN_VERSION
version strings, which will act as cache busters when new versions are installed.cheers,
Ross
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Enqueued scripts / styles getting WordPress version’ is closed to new replies.