CSS files not versioning when updating plugin
-
Hi,
We’ve had some issues when updating the Getty Images plugin to the latest version as the CSS files contain a breaking change but are enqueued without any version specified.
The default versioning behaviour is to use the WordPress version instead of the plugin version, meaning the CSS files are cached both locally and on our edge servers and don’t update with the plugin.
We think the wp_enqueue_style calls in Getty_Images::admin_enqueue should pass the plugin version in the arguments for all CSS files like below?
wp_enqueue_style(‘getty-browser’, plugins_url(‘/css/getty-browser.css’, __FILE__),[],$this->__plugin_get_version());
Cheers,
ChrisThe page I need help with: [log in to see the link]
- The topic ‘CSS files not versioning when updating plugin’ is closed to new replies.