Changeset 2499585
- Timestamp:
- 03/19/2021 04:39:57 PM (5 years ago)
- Location:
- ilmenite-cookie-consent
- Files:
-
- 10 edited
- 1 copied
-
tags/3.0.3 (copied) (copied from ilmenite-cookie-consent/trunk)
-
tags/3.0.3/CHANGELOG.md (modified) (1 diff)
-
tags/3.0.3/classes/class-consent.php (modified) (1 diff)
-
tags/3.0.3/classes/class-trackers.php (modified) (2 diffs)
-
tags/3.0.3/ilmenite-cookie-consent.php (modified) (2 diffs)
-
tags/3.0.3/readme.txt (modified) (1 diff)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/classes/class-consent.php (modified) (1 diff)
-
trunk/classes/class-trackers.php (modified) (2 diffs)
-
trunk/ilmenite-cookie-consent.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ilmenite-cookie-consent/tags/3.0.3/CHANGELOG.md
r2494173 r2499585 1 1 # Changelog 2 3 ## [3.0.3] - 2021-03-19 4 - Fixed a bug where domains were included in the disallow list even when they were supposed to be allowed. (#16) 2 5 3 6 ## [3.0.2] - 2021-03-12 -
ilmenite-cookie-consent/tags/3.0.3/classes/class-consent.php
r2494173 r2499585 23 23 */ 24 24 public static function has_full_consent() { 25 return in_array( [ 'analytics', 'marketing' ], self::get_consented_list(), true);25 return self::has_consented_to( 'analytics' ) && self::has_consented_to( 'marketing' ); 26 26 } 27 27 -
ilmenite-cookie-consent/tags/3.0.3/classes/class-trackers.php
r2488465 r2499585 109 109 } 110 110 111 if( ILCC_Consent::has_consented_to( 'marketing') ){ 112 foreach ( self::get_marketing() as $domain ) { 113 if ( ! empty( $domain ) ) { 114 $allowlist[] = '/' . addslashes( $domain ) . '/'; 115 } 116 } 117 } 118 119 if( ILCC_Consent::has_consented_to( 'analytics') ){ 120 foreach ( self::get_analytics() as $domain ) { 121 if ( ! empty( $domain ) ) { 122 $allowlist[] = '/' . addslashes( $domain ) . '/'; 123 } 124 } 125 } 126 111 127 return implode( ',', $allowlist ); 112 128 } … … 121 137 $disallow = []; 122 138 123 foreach ( self::get_all() as $domain ) { 124 if ( ! empty( $domain ) ) { 125 $disallow[] = '/' . addslashes( $domain ) . '/'; 139 if( ! ILCC_Consent::has_consented_to( 'marketing') ){ 140 foreach ( self::get_marketing() as $domain ) { 141 if ( ! empty( $domain ) ) { 142 $disallow[] = '/' . addslashes( $domain ) . '/'; 143 } 144 } 145 } 146 147 if( ! ILCC_Consent::has_consented_to( 'analytics') ){ 148 foreach ( self::get_analytics() as $domain ) { 149 if ( ! empty( $domain ) ) { 150 $disallow[] = '/' . addslashes( $domain ) . '/'; 151 } 126 152 } 127 153 } -
ilmenite-cookie-consent/tags/3.0.3/ilmenite-cookie-consent.php
r2494173 r2499585 5 5 * Description: A simple, developer-friendly WordPress plugin that lets visitors know that the site is using cookies. 6 6 * Author: Bernskiold Media 7 * Version: 3.0. 27 * Version: 3.0.3 8 8 * Author URI: http://www.bernskioldmedia.com/ 9 9 * Text Domain: ilmenite-cookie-consent … … 54 54 * @var string 55 55 */ 56 public $version = '3.0. 2';56 public $version = '3.0.3'; 57 57 58 58 /** -
ilmenite-cookie-consent/tags/3.0.3/readme.txt
r2494173 r2499585 144 144 145 145 == Changelog == 146 147 = Version 3.0.3 = 148 - Fixed a bug where domains were included in the disallow list even when they were supposed to be allowed. (#16) 146 149 147 150 = Version 3.0.2 = -
ilmenite-cookie-consent/trunk/CHANGELOG.md
r2494173 r2499585 1 1 # Changelog 2 3 ## [3.0.3] - 2021-03-19 4 - Fixed a bug where domains were included in the disallow list even when they were supposed to be allowed. (#16) 2 5 3 6 ## [3.0.2] - 2021-03-12 -
ilmenite-cookie-consent/trunk/classes/class-consent.php
r2494173 r2499585 23 23 */ 24 24 public static function has_full_consent() { 25 return in_array( [ 'analytics', 'marketing' ], self::get_consented_list(), true);25 return self::has_consented_to( 'analytics' ) && self::has_consented_to( 'marketing' ); 26 26 } 27 27 -
ilmenite-cookie-consent/trunk/classes/class-trackers.php
r2488465 r2499585 109 109 } 110 110 111 if( ILCC_Consent::has_consented_to( 'marketing') ){ 112 foreach ( self::get_marketing() as $domain ) { 113 if ( ! empty( $domain ) ) { 114 $allowlist[] = '/' . addslashes( $domain ) . '/'; 115 } 116 } 117 } 118 119 if( ILCC_Consent::has_consented_to( 'analytics') ){ 120 foreach ( self::get_analytics() as $domain ) { 121 if ( ! empty( $domain ) ) { 122 $allowlist[] = '/' . addslashes( $domain ) . '/'; 123 } 124 } 125 } 126 111 127 return implode( ',', $allowlist ); 112 128 } … … 121 137 $disallow = []; 122 138 123 foreach ( self::get_all() as $domain ) { 124 if ( ! empty( $domain ) ) { 125 $disallow[] = '/' . addslashes( $domain ) . '/'; 139 if( ! ILCC_Consent::has_consented_to( 'marketing') ){ 140 foreach ( self::get_marketing() as $domain ) { 141 if ( ! empty( $domain ) ) { 142 $disallow[] = '/' . addslashes( $domain ) . '/'; 143 } 144 } 145 } 146 147 if( ! ILCC_Consent::has_consented_to( 'analytics') ){ 148 foreach ( self::get_analytics() as $domain ) { 149 if ( ! empty( $domain ) ) { 150 $disallow[] = '/' . addslashes( $domain ) . '/'; 151 } 126 152 } 127 153 } -
ilmenite-cookie-consent/trunk/ilmenite-cookie-consent.php
r2494173 r2499585 5 5 * Description: A simple, developer-friendly WordPress plugin that lets visitors know that the site is using cookies. 6 6 * Author: Bernskiold Media 7 * Version: 3.0. 27 * Version: 3.0.3 8 8 * Author URI: http://www.bernskioldmedia.com/ 9 9 * Text Domain: ilmenite-cookie-consent … … 54 54 * @var string 55 55 */ 56 public $version = '3.0. 2';56 public $version = '3.0.3'; 57 57 58 58 /** -
ilmenite-cookie-consent/trunk/readme.txt
r2494173 r2499585 144 144 145 145 == Changelog == 146 147 = Version 3.0.3 = 148 - Fixed a bug where domains were included in the disallow list even when they were supposed to be allowed. (#16) 146 149 147 150 = Version 3.0.2 =
Note: See TracChangeset
for help on using the changeset viewer.