Title: asset version code is buggy
Last modified: November 24, 2025

---

# asset version code is buggy

 *  Resolved [adriansoewono](https://wordpress.org/support/users/adriansoewono/)
 * (@adriansoewono)
 * [6 months ago](https://wordpress.org/support/topic/asset-version-code-is-buggy/)
 * in the osom-modal-login.php there is this code:
 * wp_enqueue_style( ‘osom-ml-admin-style’, $plugin_url . ‘/assets/css/admin-osom-
   modal-login.css’, OSOM_ML_VERSION, true );
 * and
 * wp_enqueue_style( ‘osom-ml-style’, $plugin_url . ‘/assets/css/osom-modal-login.
   css’, OSOM_ML_VERSION, true );
 * so when I tried change the css file, then I changed the version of OSOM_ML_VERSION,
   the loaded assets (css file) is not changing.
 * the parameter of wp_enqueue_style is wp_enqueue_style( string $handle, string
   $src = ”, string[] $deps = array(), string|bool|null $ver = false, string $media
   = ‘all’ )
 * so the correct code will be
 * wp_enqueue_style( ‘osom-ml-admin-style’, $plugin_url . ‘/assets/css/admin-osom-
   modal-login.css’, ”, OSOM_ML_VERSION, ‘all’ );
 * and
 * wp_enqueue_style( ‘osom-ml-style’, $plugin_url . ‘/assets/css/osom-modal-login.
   css’, ”, OSOM_ML_VERSION, ‘all’ );
 * I have tried the last one and it’s working.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Nahuai Badiola](https://wordpress.org/support/users/nahuai/)
 * (@nahuai)
 * [6 months ago](https://wordpress.org/support/topic/asset-version-code-is-buggy/#post-18731711)
 * Hey [@adriansoewono](https://wordpress.org/support/users/adriansoewono/),
 * Thanks for your suggestion. We just uploaded a new plugin version (1.5.2) with
   the improvement.
 * Best,
   Nahuai

Viewing 1 replies (of 1 total)

The topic ‘asset version code is buggy’ is closed to new replies.

 * ![](https://ps.w.org/osom-modal-login/assets/icon.svg?rev=3358426)
 * [Osom Modal Login](https://wordpress.org/plugins/osom-modal-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/osom-modal-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/osom-modal-login/)
 * [Active Topics](https://wordpress.org/support/plugin/osom-modal-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/osom-modal-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/osom-modal-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nahuai Badiola](https://wordpress.org/support/users/nahuai/)
 * Last activity: [6 months ago](https://wordpress.org/support/topic/asset-version-code-is-buggy/#post-18731711)
 * Status: resolved