Plugin Directory

Changeset 2499585


Ignore:
Timestamp:
03/19/2021 04:39:57 PM (5 years ago)
Author:
Erik Bernskiold
Message:

Update to version 3.0.3 from GitHub

Location:
ilmenite-cookie-consent
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ilmenite-cookie-consent/tags/3.0.3/CHANGELOG.md

    r2494173 r2499585  
    11# 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)
    25
    36## [3.0.2] - 2021-03-12
  • ilmenite-cookie-consent/tags/3.0.3/classes/class-consent.php

    r2494173 r2499585  
    2323     */
    2424    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' );
    2626    }
    2727
  • ilmenite-cookie-consent/tags/3.0.3/classes/class-trackers.php

    r2488465 r2499585  
    109109        }
    110110
     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
    111127        return implode( ',', $allowlist );
    112128    }
     
    121137        $disallow = [];
    122138
    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                }
    126152            }
    127153        }
  • ilmenite-cookie-consent/tags/3.0.3/ilmenite-cookie-consent.php

    r2494173 r2499585  
    55 *  Description:    A simple, developer-friendly WordPress plugin that lets visitors know that the site is using cookies.
    66 *  Author:         Bernskiold Media
    7  *  Version:        3.0.2
     7 *  Version:        3.0.3
    88 *  Author URI:     http://www.bernskioldmedia.com/
    99 *  Text Domain:    ilmenite-cookie-consent
     
    5454     * @var string
    5555     */
    56     public $version = '3.0.2';
     56    public $version = '3.0.3';
    5757
    5858    /**
  • ilmenite-cookie-consent/tags/3.0.3/readme.txt

    r2494173 r2499585  
    144144
    145145== 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)
    146149
    147150= Version 3.0.2 =
  • ilmenite-cookie-consent/trunk/CHANGELOG.md

    r2494173 r2499585  
    11# 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)
    25
    36## [3.0.2] - 2021-03-12
  • ilmenite-cookie-consent/trunk/classes/class-consent.php

    r2494173 r2499585  
    2323     */
    2424    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' );
    2626    }
    2727
  • ilmenite-cookie-consent/trunk/classes/class-trackers.php

    r2488465 r2499585  
    109109        }
    110110
     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
    111127        return implode( ',', $allowlist );
    112128    }
     
    121137        $disallow = [];
    122138
    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                }
    126152            }
    127153        }
  • ilmenite-cookie-consent/trunk/ilmenite-cookie-consent.php

    r2494173 r2499585  
    55 *  Description:    A simple, developer-friendly WordPress plugin that lets visitors know that the site is using cookies.
    66 *  Author:         Bernskiold Media
    7  *  Version:        3.0.2
     7 *  Version:        3.0.3
    88 *  Author URI:     http://www.bernskioldmedia.com/
    99 *  Text Domain:    ilmenite-cookie-consent
     
    5454     * @var string
    5555     */
    56     public $version = '3.0.2';
     56    public $version = '3.0.3';
    5757
    5858    /**
  • ilmenite-cookie-consent/trunk/readme.txt

    r2494173 r2499585  
    144144
    145145== 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)
    146149
    147150= Version 3.0.2 =
Note: See TracChangeset for help on using the changeset viewer.