Plugin Directory

Changeset 3430176


Ignore:
Timestamp:
12/31/2025 03:02:30 PM (3 months ago)
Author:
marknokes
Message:

Version 2.9.2

Location:
cache-using-gzip
Files:
20 added
3 edited

Legend:

Unmodified
Added
Removed
  • cache-using-gzip/trunk/cache-using-gzip.php

    r3412360 r3430176  
    55/*
    66 * Plugin Name: Cache Using Gzip
    7  * Version: 2.9.1
     7 * Version: 2.9.2
    88 * Description: Creates gzip files on your server to immensly improve page speed for site visitors
    99 * Author: Cache Using Gzip
  • cache-using-gzip/trunk/classes/CUGZ/class-cugz-gzip-cache.php

    r3412360 r3430176  
    431431    public function cugz_dequeue_scripts()
    432432    {
    433         global $post;
    434 
    435         if ($post) {
    436             if (false === strpos($post->post_content, '[contact-form-7')) {
    437                 add_filter('wpcf7_load_js', '__return_false');
    438 
    439                 add_filter('wpcf7_load_css', '__return_false');
     433        if (function_exists('wpcf7')) {
     434            global $post;
     435
     436            if ($post && !has_shortcode($post->post_content, 'contact-form-7')) {
     437                wp_dequeue_style('contact-form-7');
     438
     439                wp_dequeue_script('contact-form-7');
    440440
    441441                wp_dequeue_script('google-recaptcha');
    442442
    443443                wp_dequeue_script('wpcf7-recaptcha');
     444
     445                wp_dequeue_script('cloudflare-turnstile');
    444446            }
    445447        }
     
    10101012        $wp_path = ABSPATH;
    10111013
    1012         $doc_root = isset($_SERVER['DOCUMENT_ROOT']) ? rtrim(sanitize_text_field(wp_unslash($_SERVER['DOCUMENT_ROOT'])), '/').'/': '/';
     1014        $doc_root = isset($_SERVER['DOCUMENT_ROOT']) ? rtrim(sanitize_text_field(wp_unslash($_SERVER['DOCUMENT_ROOT'])), '/').'/' : '/';
    10131015
    10141016        $subdirectory = '/';
  • cache-using-gzip/trunk/readme.txt

    r3412360 r3430176  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 2.9.1
     7Stable tag: 2.9.2
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8484
    8585== Changelog =
     86
     87= 2.9.2 =
     88Improvement: Add turnstile to dequeue for non-cf7 pages
    8689
    8790= 2.9.1 =
Note: See TracChangeset for help on using the changeset viewer.