Plugin Directory

Changeset 3054613


Ignore:
Timestamp:
03/19/2024 04:22:02 PM (2 years ago)
Author:
sajdoko
Message:

Added functionalities to display cookie banner consent.

Location:
lw-all-in-one/trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lw-all-in-one/trunk/includes/class-lw-all-in-one-activator.php

    r3054610 r3054613  
    218218    if (is_plugin_active('wp-fastest-cache/wpFastestCache.php')) {
    219219      // Exclude from cache 'lwaio_*' cookies
    220       update_option( 'WpFastestCacheExclude', json_encode(["prefix" => "contain", "content" => "lwaio_", "type" => "cookie"]));
     220      update_option( 'WpFastestCacheExclude', json_encode([["prefix" => "contain", "content" => "lwaio_", "type" => "cookie"]]));
    221221      if(isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')){
    222222        $GLOBALS['wp_fastest_cache']->deleteCache(true);
  • lw-all-in-one/trunk/includes/class-lw-all-in-one.php

    r3054610 r3054613  
    298298
    299299      // Exclude from cache 'lwaio_*' cookies
    300       update_option( 'WpFastestCacheExclude', json_encode(["prefix" => "contain", "content" => "lwaio_", "type" => "cookie"]));
     300      update_option( 'WpFastestCacheExclude', json_encode([["prefix" => "contain", "content" => "lwaio_", "type" => "cookie"]]));
    301301    }
    302302
Note: See TracChangeset for help on using the changeset viewer.