PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3
Jetpack – WP Security, Backup, Speed, & Growth v16.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
← All changes | modules/wordads/js/wordads-ccpa.js +18 -5 12.4.2 → 16.3 View file →
@@ -13,9 +13,9 @@
13 13 decodeURIComponent(
14 14 document.cookie.replace(
15 15 new RegExp(
16 16 '(?:(?:^|.*;)\\s*' +
17 - encodeURIComponent( e ).replace( /[\-\.\+\*]/g, '\\$&' ) +
17 + encodeURIComponent( e ).replace( /[-.+*]/g, '\\$&' ) +
18 18 '\\s*\\=\\s*([^;]*).*$)|^.*$'
19 19 ),
20 20 '$1'
21 21 )
@@ -23,9 +23,9 @@
23 23 null
24 24 );
25 25 },
26 26 setItem: function ( e, o, n, t, r, i ) {
27 - if ( ! e || /^(?:expires|max\-age|path|domain|secure)$/i.test( e ) ) {
27 + if ( ! e || /^(?:expires|max-age|path|domain|secure)$/i.test( e ) ) {
28 28 return ! 1;
29 29 }
30 30 var c = '';
31 31 if ( n ) {
@@ -53,9 +53,9 @@
53 53 ( r ? '; domain=' + r : '' ) +
54 54 ( t ? '; path=' + t : '' ) +
55 55 ( i ? '; secure' : '' ) ),
56 56 ! 0
57 - );
57 + );
58 58 },
59 59 };
60 60
61 61 // Implement IAB USP API.
@@ -313,10 +313,23 @@
313 313 // Got a geo response. Parse out the region data.
314 314 var data = JSON.parse( this.response );
315 315 var region = data.region ? data.region.toLowerCase() : '';
316 316 var ccpaApplies =
317 - [ 'california', 'colorado', 'connecticut', 'utah', 'virginia' ].indexOf( region ) >
318 - -1;
317 + [
318 + 'california',
319 + 'colorado',
320 + 'connecticut',
321 + 'delaware',
322 + 'indiana',
323 + 'iowa',
324 + 'montana',
325 + 'new jersey',
326 + 'oregon',
327 + 'tennessee',
328 + 'texas',
329 + 'utah',
330 + 'virginia',
331 + ].indexOf( region ) > -1;
319 332
320 333 // Set CCPA applies cookie. This keeps us from having to make a geo request too frequently.
321 334 setCcpaAppliesCookie( ccpaApplies );
322 335