Changeset 3430176
- Timestamp:
- 12/31/2025 03:02:30 PM (3 months ago)
- Location:
- cache-using-gzip
- Files:
-
- 20 added
- 3 edited
-
tags/2.9.2 (added)
-
tags/2.9.2/autoload.php (added)
-
tags/2.9.2/cache-using-gzip.php (added)
-
tags/2.9.2/classes (added)
-
tags/2.9.2/classes/CUGZ (added)
-
tags/2.9.2/classes/CUGZ/class-cugz-gzip-cache.php (added)
-
tags/2.9.2/css (added)
-
tags/2.9.2/css/jquery-ui.css (added)
-
tags/2.9.2/css/jquery-ui.min.css (added)
-
tags/2.9.2/css/style.css (added)
-
tags/2.9.2/css/style.min.css (added)
-
tags/2.9.2/js (added)
-
tags/2.9.2/js/main.js (added)
-
tags/2.9.2/js/main.min.js (added)
-
tags/2.9.2/license.txt (added)
-
tags/2.9.2/readme.txt (added)
-
tags/2.9.2/templates (added)
-
tags/2.9.2/templates/htaccess.sample (added)
-
tags/2.9.2/templates/nginx.conf.sample (added)
-
tags/2.9.2/templates/options-page.php (added)
-
trunk/cache-using-gzip.php (modified) (1 diff)
-
trunk/classes/CUGZ/class-cugz-gzip-cache.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cache-using-gzip/trunk/cache-using-gzip.php
r3412360 r3430176 5 5 /* 6 6 * Plugin Name: Cache Using Gzip 7 * Version: 2.9. 17 * Version: 2.9.2 8 8 * Description: Creates gzip files on your server to immensly improve page speed for site visitors 9 9 * Author: Cache Using Gzip -
cache-using-gzip/trunk/classes/CUGZ/class-cugz-gzip-cache.php
r3412360 r3430176 431 431 public function cugz_dequeue_scripts() 432 432 { 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'); 440 440 441 441 wp_dequeue_script('google-recaptcha'); 442 442 443 443 wp_dequeue_script('wpcf7-recaptcha'); 444 445 wp_dequeue_script('cloudflare-turnstile'); 444 446 } 445 447 } … … 1010 1012 $wp_path = ABSPATH; 1011 1013 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'])), '/').'/' : '/'; 1013 1015 1014 1016 $subdirectory = '/'; -
cache-using-gzip/trunk/readme.txt
r3412360 r3430176 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.9. 17 Stable tag: 2.9.2 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 84 84 85 85 == Changelog = 86 87 = 2.9.2 = 88 Improvement: Add turnstile to dequeue for non-cf7 pages 86 89 87 90 = 2.9.1 =
Note: See TracChangeset
for help on using the changeset viewer.