Is your current plugin version Version 1.5 compatible with PHP 8.0?
]]>I’ve noticed that the plugin doesn’t remove the (wordpress default?) ?ver=4.9.6 from remote urls, like Google Fonts, jQuery, and so on.
I think that’s because it doesn’t find anything local to get filemtime for, so it throws up hands and returns without changing the src.
It’s possible that without this ?ver= param, loading from a canonical source, a viewer browser could have some libraries already in cache from another site. a mild perf boost.
Adding the following line to the top of the autover_version_filter function fixes this behavior, so that if it can’t find the file locally, it gets no ?ver= param at all.
$src = remove_query_arg( 'ver', $src );
Arguably a defect in wp core, not autover, but seems like a nice opportunity to make this plugin even better…
Thanks,
Chris
can this be fixed?
2013/08/26 18:42:33 [error] 72483#0: *281876 FastCGI sent in stderr: "PHP message: PHP Warning: array_push() expects parameter 1 to be array, string given in /var/www/clients/client2/web8/web/wp-content/plugins/autover/autover.php on line 194
PHP message: PHP Warning: array_unique() expects parameter 1 to be array, string given in /var/www/clients/client2/web8/web/wp-content/plugins/autover/autover.php on line 195
PHP message: PHP Warning: sort() expects parameter 1 to be array, null given in /var/www/clients/client2/web8/web/wp-content/plugins/autover/autover.php on line 196
PHP message: PHP Warning: array_push() expects parameter 1 to be array, string given in /var/www/clients/client2/web8/web/wp-content/plugins/autover/autover.php on line 194
PHP message: PHP Warning: array_unique() expects parameter 1 to be array, string given in /var/www/clients/client2/web8/web/wp-content/plugins/autover/autover.php on line 195
PHP message: PHP Warning: sort() expects parameter 1 to be array, null given in /var/www/clients/client2/web8/web/wp-content/plugins/autover/autover.php on line 196" while reading upstream,
]]>
I’ve been looking for something like this for a while, so I installed it, went to its settings, clicked SAVE for good measure I am told:
This plugin is currently not used!
HUH?! I am sure at least some of the plugins I use do properly enqueue their css/js files!
Which brings me to a feature suggestion:
How about you build a check into the plugin listing “wrong” calls to css and js files so we can then either correct them or contact theme/plugin authors asking them to properly include those files?
That would help make the world a better place ??
]]>