First off, thanks for the plugin. Does exactly what I want in a nice lightweight manner.
I have found a bug however in how the plugin is appending 'ver' query args to URLs. As per the WordPress docs (https://developer.wordpress.org/reference/functions/wp_enqueue_style/), the WordPress version is only added if $ver is set to false (also the default). If $ver is set to null instead, no version string is added.
Your check for !empty() catches both cases the same. There needs to be another outcome where no query argument is added when $ver === null.
First off, thanks for the plugin. Does exactly what I want in a nice lightweight manner.
I have found a bug however in how the plugin is appending
'ver'
query args to URLs. As per the WordPress docs (https://developer.wordpress.org/reference/functions/wp_enqueue_style/), the WordPress version is only added if $ver is set tofalse
(also the default). If $ver is set tonull
instead, no version string is added.Your check for
!empty()
catches both cases the same. There needs to be another outcome where no query argument is added when$ver === null
.