You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because WooCommerce use the HTTP prefix // instead on HTTP:// or HTTPS://, so WP Minify Fix, ignore them, exactly in local_version function (line 528).
So please fix it by add the HTTP or HTTPS protocols to the url depending on get_option('siteurl'), maybe something like :
functionlocal_version($url) {
$site_url = trailingslashit(get_option('siteurl'));
if (preg_match('#^//#', $url)) {
$url = 'http'.(preg_match('#^https://#', $site_url) ? 's:' : ':').$url;
}
$url = str_replace($site_url, '', $url); // relative paths only for local urls//$url = preg_replace('/^\//', '', $url); // strip front / if any$url = preg_replace('/\?.*/i', '', $url); // throws away parameters, if anyreturn$url;
}
Best,
Sidati
The text was updated successfully, but these errors were encountered:
Hello there,
Because WooCommerce use the HTTP prefix
//
instead onHTTP://
orHTTPS://
, so WP Minify Fix, ignore them, exactly inlocal_version
function(line 528)
.So please fix it by add the
HTTP
orHTTPS
protocols to the url depending onget_option('siteurl')
, maybe something like :Best,
Sidati
The text was updated successfully, but these errors were encountered: