PluginProbe
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript / trunk
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript vtrunk
4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.0.30 4.0.29 4.0.28 4.0.27 4.0.26 4.0.24 4.0.25 4.0.23 4.0.22 4.0.21 4.0.19 4.0.18 4.0.17 4.0.16 1.9.3 1.9.4 1.9.5 1.9.6 All 170 releases
← All changes | inc/helper-functions.php +9 -0 4.1.13trunk View file →
@@ -224,8 +224,9 @@
224 224 "/embed",
225 225 "/view-order/",
226 226 "/redirect/",
227 227 "/elementskit-content/",
228 + "/checkout/",
228 229 ];
229 230
230 231 $exclude_items = apply_filters('berqwp_exclude_slug_match', $exclude_items);
231 232
@@ -1936,8 +1937,9 @@
1936 1937 '<IfModule mod_mime.c>',
1937 1938 ' <FilesMatch "index\.html\.gz$">',
1938 1939 ' ForceType text/html',
1939 1940 ' AddEncoding gzip .gz',
1941 + ' AddDefaultCharset utf-8',
1940 1942 ' </FilesMatch>',
1941 1943 '</IfModule>',
1942 1944 '<IfModule mod_headers.c>',
1943 1945 ' <FilesMatch "index\.html\.gz$">',
@@ -2348,4 +2350,11 @@
2348 2350 $license_key = berqwp_get_license_key();
2349 2351
2350 2352 return !empty($configs['site_id']) && !empty($configs['secret']) && !empty($configs['optimization_method']) && $configs['optimization_method'] == 'cloud' && !empty($license_key);
2351 2353 }
2354 +
2355 +function berqwp_generate_site_id() {
2356 + $blog_id = get_current_blog_id();
2357 + $network_id = function_exists('get_current_network_id') ? get_current_network_id() : 1;
2358 + $siteurl = get_option('siteurl');
2359 + return md5("berqwp|$network_id|$blog_id|$siteurl");
2360 +}