Varnish HTTP Purge - Version 5.1.3

Version Description

  • June 2022
  • Check if a required option exists before trying to use it
Download this release

Release Info

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

Code changes from version 5.1.2 to 5.1.3

Files changed (2) hide show
  1. readme.txt +5 -2
  2. varnish-http-purge.php +2 -2
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Ipstenu, mikeschroder, techpriester, danielbachhuber
3
  Tags: proxy, purge, cache, varnish, nginx
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
- Stable tag: 5.1.2
7
  Requires PHP: 5.6
8
 
9
  Automatically empty proxy cached content when your site is modified.
@@ -247,6 +247,10 @@ This plugin is installed by default for _all_ DreamPress installs on DreamHost,
247
 
248
  == Changelog ==
249
 
 
 
 
 
250
  = 5.1.2 =
251
  * April 2022
252
  * Fix typo in readme
@@ -273,4 +277,3 @@ This plugin is installed by default for _all_ DreamPress installs on DreamHost,
273
  5. Change Proxy IP address
274
  6. Activate Dev Mode
275
  7. Dev Mode Warning (24 hour notice)
276
-
3
  Tags: proxy, purge, cache, varnish, nginx
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
+ Stable tag: 5.1.3
7
  Requires PHP: 5.6
8
 
9
  Automatically empty proxy cached content when your site is modified.
247
 
248
  == Changelog ==
249
 
250
+ = 5.1.3 =
251
+ * June 2022
252
+ * Check if a required option exists before trying to use it
253
+
254
  = 5.1.2 =
255
  * April 2022
256
  * Fix typo in readme
277
  5. Change Proxy IP address
278
  6. Activate Dev Mode
279
  7. Dev Mode Warning (24 hour notice)
 
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.1.2
7
  * Author: Mika Epstein
8
  * Author URI: https://halfelf.org/
9
  * License: http://www.apache.org/licenses/LICENSE-2.0
@@ -475,7 +475,7 @@ class VarnishPurger {
475
 
476
  $fill = ( false !== $icon_color ) ? sanitize_hex_color( $icon_color ) : '#82878c';
477
 
478
- if ( is_admin() && false === $icon_color ) {
479
  $admin_colors = json_decode( wp_json_encode( $_wp_admin_css_colors ), true );
480
  $current_color = get_user_option( 'admin_color' );
481
  $fill = $admin_colors[ $current_color ]['icon_colors']['base'];
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.1.3
7
  * Author: Mika Epstein
8
  * Author URI: https://halfelf.org/
9
  * License: http://www.apache.org/licenses/LICENSE-2.0
475
 
476
  $fill = ( false !== $icon_color ) ? sanitize_hex_color( $icon_color ) : '#82878c';
477
 
478
+ if ( is_admin() && false === $icon_color && get_user_option( 'admin_color' ) ) {
479
  $admin_colors = json_decode( wp_json_encode( $_wp_admin_css_colors ), true );
480
  $current_color = get_user_option( 'admin_color' );
481
  $fill = $admin_colors[ $current_color ]['icon_colors']['base'];