Varnish HTTP Purge - Version 5.0.3

Version Description

  • August 2021
  • PHP 8 Compat
Download this release

Release Info

Developer Ipstenu
Plugin Icon 128x128 Varnish HTTP Purge
Version 5.0.3
Comparing to
See all releases

Code changes from version 5.0.2 to 5.0.3

Files changed (5) hide show
  1. debug.php +2 -2
  2. debugger/plugins.json +7 -0
  3. readme.txt +6 -2
  4. settings.php +1 -1
  5. varnish-http-purge.php +2 -2
debug.php CHANGED
@@ -292,7 +292,7 @@ class VarnishDebug {
292
  // Determine the default message.
293
  if ( false !== $cache_service ) {
294
  // translators: %1 is the type of caching service detected (i.e. nginx or varnish).
295
- $return['message'] = sprintf( __( 'Your %1 caching service appears to be running properly.', 'varnish-http-purge' ), $cache_service );
296
  $return['icon'] = 'good';
297
  }
298
  }
@@ -310,7 +310,7 @@ class VarnishDebug {
310
  $return['icon'] = 'awesome';
311
  } else {
312
  // translators: %1 is the type of caching service detected (i.e. nginx or varnish).
313
- $return['message'] = sprintf( __( '%s caching service is running but is unable to cache your site.', 'varnish-http-purge' ), $cache_service );
314
  $return['icon'] = 'warning';
315
  }
316
 
292
  // Determine the default message.
293
  if ( false !== $cache_service ) {
294
  // translators: %1 is the type of caching service detected (i.e. nginx or varnish).
295
+ $return['message'] = sprintf( __( 'Your %1s caching service appears to be running properly.', 'varnish-http-purge' ), $cache_service );
296
  $return['icon'] = 'good';
297
  }
298
  }
310
  $return['icon'] = 'awesome';
311
  } else {
312
  // translators: %1 is the type of caching service detected (i.e. nginx or varnish).
313
+ $return['message'] = sprintf( __( '%1s caching service is running but is unable to cache your site.', 'varnish-http-purge' ), $cache_service );
314
  $return['icon'] = 'warning';
315
  }
316
 
debugger/plugins.json CHANGED
@@ -77,6 +77,13 @@
77
  "reason": "translation",
78
  "always": true
79
  },
 
 
 
 
 
 
 
80
  "quick-cache":{
81
  "type": "bad",
82
  "path": "quick-cache/quick-cache.php",
77
  "reason": "translation",
78
  "always": true
79
  },
80
+ "profilepress":{
81
+ "type": "bad",
82
+ "path": "wp-user-avatar/wp-user-avatar.php",
83
+ "reason": "cookies",
84
+ "always": true
85
+ },
86
+ },
87
  "quick-cache":{
88
  "type": "bad",
89
  "path": "quick-cache/quick-cache.php",
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Ipstenu, mikeschroder, techpriester, danielbachhuber
3
  Tags: proxy, purge, cache, varnish, nginx
4
  Requires at least: 5.0
5
- Tested up to: 5.7
6
- Stable tag: 5.0.2
7
  Requires PHP: 5.6
8
 
9
  Automatically empty proxy cached content when your site is modified.
@@ -227,6 +227,10 @@ This plugin is installed by default for _all_ DreamPress installs on DreamHost,
227
 
228
  == Changelog ==
229
 
 
 
 
 
230
  = 5.0.2 =
231
  * April 2021
232
  * Wrapping a function_exists check which shouldn't be needed, but it fataled for someone and an ounce of prevention yadda yadda.
2
  Contributors: Ipstenu, mikeschroder, techpriester, danielbachhuber
3
  Tags: proxy, purge, cache, varnish, nginx
4
  Requires at least: 5.0
5
+ Tested up to: 5.8
6
+ Stable tag: 5.0.3
7
  Requires PHP: 5.6
8
 
9
  Automatically empty proxy cached content when your site is modified.
227
 
228
  == Changelog ==
229
 
230
+ = 5.0.3 =
231
+ * August 2021
232
+ * PHP 8 Compat
233
+
234
  = 5.0.2 =
235
  * April 2021
236
  * Wrapping a function_exists check which shouldn't be needed, but it fataled for someone and an ounce of prevention yadda yadda.
settings.php CHANGED
@@ -340,7 +340,7 @@ class VarnishStatus {
340
  // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
341
  $content = print_r( $key, true );
342
  } else {
343
- $content = wp_kses_post( $key );
344
  }
345
  echo '<tr><td width="200px" style="text-align:right;">' . wp_kses_post( ucfirst( $header ) ) . ':</td><td>' . wp_kses_post( $content ) . '</td></tr>';
346
  }
340
  // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
341
  $content = print_r( $key, true );
342
  } else {
343
+ $content = esc_html( $key );
344
  }
345
  echo '<tr><td width="200px" style="text-align:right;">' . wp_kses_post( ucfirst( $header ) ) . ':</td><td>' . wp_kses_post( $content ) . '</td></tr>';
346
  }
varnish-http-purge.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Proxy Cache Purge
4
  * Plugin URI: https://github.com/ipstenu/varnish-http-purge/
5
  * Description: Automatically empty cached pages when content on your site is modified.
6
- * Version: 5.0.2
7
  * Author: Mika Epstein
8
  * Author URI: https://halfelf.org/
9
  * License: http://www.apache.org/licenses/LICENSE-2.0
@@ -35,7 +35,7 @@ class VarnishPurger {
35
  * Version Number
36
  * @var string
37
  */
38
- public static $version = '5.0.1';
39
 
40
  /**
41
  * List of URLs to be purged
3
  * Plugin Name: Proxy Cache Purge
4
  * Plugin URI: https://github.com/ipstenu/varnish-http-purge/
5
  * Description: Automatically empty cached pages when content on your site is modified.
6
+ * Version: 5.0.3
7
  * Author: Mika Epstein
8
  * Author URI: https://halfelf.org/
9
  * License: http://www.apache.org/licenses/LICENSE-2.0
35
  * Version Number
36
  * @var string
37
  */
38
+ public static $version = '5.0.3';
39
 
40
  /**
41
  * List of URLs to be purged