Plugin Directory

Changeset 1814287


Ignore:
Timestamp:
02/02/2018 04:58:57 PM (8 years ago)
Author:
GatorDog
Message:

updated WooCommerce compatiblity

Location:
gator-cache/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gator-cache/trunk/gator-cache.php

    r1814163 r1814287  
    22/**
    33 * @package Gator Cache
    4  * @version 2.1.6
     4 * @version 2.1.7
    55 */
    66/*
     
    1212Text Domain: gator-cache
    1313Domain Path: /lang
    14 Version: 2.1.6
     14Version: 2.1.7
    1515*/
    1616class WpGatorCache
     
    4949    protected static $multiSiteData;
    5050    const PREFIX = 'gtr_cache';
    51     const VERSION = '2.1.6';
     51    const VERSION = '2.1.7';
    5252    const JP_MOBILE_MOD = 'minileven'; // JetPack mobile module slug
    5353    const SUPPORT_LINK = 'https://wordpress.org/support/plugin/gator-cache';
     
    5757        $options = self::getOptions();
    5858        $request = GatorCache::getRequest();
     59        // work-around for recent version of WooCommerce prevent caching on later hook
     60        if (defined('WOOCOMMERCE_VERSION') && false !== has_filter('wp', 'WC_Cache_Helper::prevent_caching')) {
     61            WC_Cache_Helper::prevent_caching();
     62            remove_filter('wp', 'WC_Cache_Helper::prevent_caching');
     63        }
    5964        global $post;
    6065        if (!$options['enabled']
  • gator-cache/trunk/readme.txt

    r1814154 r1814287  
    55Requires at least: 3.8
    66Tested up to: 4.9.2
    7 Stable tag: 2.1.6
     7Stable tag: 2.1.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555
    5656== Changelog ==
     57= 2.1.7 =
     58* Compatiblity with recent versions of WooCommerce, will not cache cart, checkout or other pertinent pages
    5759= 2.1.6 =
    5860* WordPress 4.9.2 compatiblity verified
Note: See TracChangeset for help on using the changeset viewer.