Plugin version not added to front.css
-
We found that the cookie notice stopped showing after plugin upgrade and traced it down to old version of front.css still loaded. That’s because it doesn’t pass anything to $ver argument of wp_enqueue_style at wp-content/plugins/cookie-notice/cookie-notice.php:1429.
It certainly passed $this->defaults[‘version’] for front.js just few lines above.
We added that argument and fixed the issue:wp_enqueue_style( 'cookie-notice-front', plugins_url( 'css/front' . ( ! ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '.min' : '' ) . '.css', __FILE__ ), array(), $this->defaults['version'] );Could you please incorporate this fix into future releases?
The topic ‘Plugin version not added to front.css’ is closed to new replies.