Title: Plugin version not added to front.css
Last modified: April 2, 2020

---

# Plugin version not added to front.css

 *  [pumka](https://wordpress.org/support/users/pumka/)
 * (@pumka)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/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.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pumka](https://wordpress.org/support/users/pumka/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-version-not-added-to-front-css/)
 * Status: not resolved