Changeset 3268218
- Timestamp:
- 04/08/2025 04:31:27 AM (11 months ago)
- Location:
- simple-banner
- Files:
-
- 2 edited
- 10 copied
-
tags/3.0.6 (copied) (copied from simple-banner/trunk)
-
tags/3.0.6/free_features.php (copied) (copied from simple-banner/trunk/free_features.php)
-
tags/3.0.6/preview_banner.php (copied) (copied from simple-banner/trunk/preview_banner.php)
-
tags/3.0.6/pro_features.php (copied) (copied from simple-banner/trunk/pro_features.php)
-
tags/3.0.6/pro_features_general_settings.php (copied) (copied from simple-banner/trunk/pro_features_general_settings.php)
-
tags/3.0.6/readme.txt (copied) (copied from simple-banner/trunk/readme.txt) (3 diffs)
-
tags/3.0.6/simple-banner.css (copied) (copied from simple-banner/trunk/simple-banner.css)
-
tags/3.0.6/simple-banner.js (copied) (copied from simple-banner/trunk/simple-banner.js)
-
tags/3.0.6/simple-banner.php (copied) (copied from simple-banner/trunk/simple-banner.php) (6 diffs)
-
tags/3.0.6/vendors (copied) (copied from simple-banner/trunk/vendors)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/simple-banner.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-banner/tags/3.0.6/readme.txt
r3264130 r3268218 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.7.2 7 Stable tag: 3.0. 57 Stable tag: 3.0.6 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 100 100 == Changelog == 101 101 102 = 3.0.6 = 103 * Clear caches on settings save 104 102 105 = 3.0.5 = 103 106 * Test against wp 6.7.2, minor bugfixes … … 361 364 == Upgrade Notice == 362 365 366 = 3.0.6 = 367 * Clear caches on settings save 368 363 369 = 3.0.5 = 364 370 * Test against wp 6.7.2, minor bugfixes -
simple-banner/tags/3.0.6/simple-banner.php
r3264130 r3268218 4 4 * Plugin URI: https://github.com/rpetersen29/simple-banner 5 5 * Description: Display a simple banner at the top or bottom of your website. Now with multi-banner support 6 * Version: 3.0. 56 * Version: 3.0.6 7 7 * Author: Ryan Petersen 8 8 * Author URI: http://rpetersen29.github.io/ … … 10 10 * 11 11 * @package Simple Banner 12 * @version 3.0. 512 * @version 3.0.6 13 13 * @author Ryan Petersen <rpetersen.dev@gmail.com> 14 14 */ 15 define ('SB_VERSION', '3.0. 5');15 define ('SB_VERSION', '3.0.6'); 16 16 17 17 register_activation_hook( __FILE__, 'simple_banner_activate' ); … … 358 358 ) 359 359 ); 360 register_setting( 'simple-banner-settings-group', 'simple_banner_clear_cache', 361 array( 362 'sanitize_callback' => 'wp_filter_nohtml_kses' 363 ) 364 ); 360 365 361 366 for ($i = 1; $i <= get_num_banners(); $i++) { … … 670 675 <?php include 'pro_features_general_settings.php' ?> 671 676 677 <?php 678 // Flip value to ensure changed value on every save 679 $value = get_option('simple_banner_clear_cache') ? '' : '1'; 680 echo '<input hidden type="text" value="'. $value . '" name="simple_banner_clear_cache" />'; 681 ?> 672 682 <!-- Save Changes Button --> 673 683 <?php submit_button(); ?> … … 982 992 } 983 993 984 // Clear cache on save 985 function clear_all_caches() { 994 /** 995 * Clear 3rd party cache on save 996 */ 997 // Hack: Set hidden variable to always change on save 998 // TODO: Find better way of making sure cache is cleared on save 999 add_action( 'update_option_simple_banner_clear_cache', 'clear_all_caches', 10, 3 ); 1000 1001 function clear_all_caches($old_value, $value, $option) { 986 1002 try { 987 $this->clearW3TotalCache();988 $this->clearWPSuperCache();989 $this->clearWPEngineCache();990 $this->clearWPFastestCache();991 $this->clearWPRocket();992 $this->clearAutoOptimizeCache();993 $this->clearLiteSpeedCache();994 $this->clearHummingbirdCache();1003 clearW3TotalCache(); 1004 clearWPSuperCache(); 1005 clearWPEngineCache(); 1006 clearWPFastestCache(); 1007 clearWPRocket(); 1008 clearAutoOptimizeCache(); 1009 clearLiteSpeedCache(); 1010 clearHummingbirdCache(); 995 1011 996 1012 return true; … … 1029 1045 foreach ($methods as $method) { 1030 1046 if (method_exists('WpeCommon', $method)) { 1031 // WpeCommon::$method(); // Currently commented out in original code1047 // WpeCommon::$method(); 1032 1048 } 1033 1049 } -
simple-banner/trunk/readme.txt
r3264130 r3268218 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.7.2 7 Stable tag: 3.0. 57 Stable tag: 3.0.6 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 100 100 == Changelog == 101 101 102 = 3.0.6 = 103 * Clear caches on settings save 104 102 105 = 3.0.5 = 103 106 * Test against wp 6.7.2, minor bugfixes … … 361 364 == Upgrade Notice == 362 365 366 = 3.0.6 = 367 * Clear caches on settings save 368 363 369 = 3.0.5 = 364 370 * Test against wp 6.7.2, minor bugfixes -
simple-banner/trunk/simple-banner.php
r3264130 r3268218 4 4 * Plugin URI: https://github.com/rpetersen29/simple-banner 5 5 * Description: Display a simple banner at the top or bottom of your website. Now with multi-banner support 6 * Version: 3.0. 56 * Version: 3.0.6 7 7 * Author: Ryan Petersen 8 8 * Author URI: http://rpetersen29.github.io/ … … 10 10 * 11 11 * @package Simple Banner 12 * @version 3.0. 512 * @version 3.0.6 13 13 * @author Ryan Petersen <rpetersen.dev@gmail.com> 14 14 */ 15 define ('SB_VERSION', '3.0. 5');15 define ('SB_VERSION', '3.0.6'); 16 16 17 17 register_activation_hook( __FILE__, 'simple_banner_activate' ); … … 358 358 ) 359 359 ); 360 register_setting( 'simple-banner-settings-group', 'simple_banner_clear_cache', 361 array( 362 'sanitize_callback' => 'wp_filter_nohtml_kses' 363 ) 364 ); 360 365 361 366 for ($i = 1; $i <= get_num_banners(); $i++) { … … 670 675 <?php include 'pro_features_general_settings.php' ?> 671 676 677 <?php 678 // Flip value to ensure changed value on every save 679 $value = get_option('simple_banner_clear_cache') ? '' : '1'; 680 echo '<input hidden type="text" value="'. $value . '" name="simple_banner_clear_cache" />'; 681 ?> 672 682 <!-- Save Changes Button --> 673 683 <?php submit_button(); ?> … … 982 992 } 983 993 984 // Clear cache on save 985 function clear_all_caches() { 994 /** 995 * Clear 3rd party cache on save 996 */ 997 // Hack: Set hidden variable to always change on save 998 // TODO: Find better way of making sure cache is cleared on save 999 add_action( 'update_option_simple_banner_clear_cache', 'clear_all_caches', 10, 3 ); 1000 1001 function clear_all_caches($old_value, $value, $option) { 986 1002 try { 987 $this->clearW3TotalCache();988 $this->clearWPSuperCache();989 $this->clearWPEngineCache();990 $this->clearWPFastestCache();991 $this->clearWPRocket();992 $this->clearAutoOptimizeCache();993 $this->clearLiteSpeedCache();994 $this->clearHummingbirdCache();1003 clearW3TotalCache(); 1004 clearWPSuperCache(); 1005 clearWPEngineCache(); 1006 clearWPFastestCache(); 1007 clearWPRocket(); 1008 clearAutoOptimizeCache(); 1009 clearLiteSpeedCache(); 1010 clearHummingbirdCache(); 995 1011 996 1012 return true; … … 1029 1045 foreach ($methods as $method) { 1030 1046 if (method_exists('WpeCommon', $method)) { 1031 // WpeCommon::$method(); // Currently commented out in original code1047 // WpeCommon::$method(); 1032 1048 } 1033 1049 }
Note: See TracChangeset
for help on using the changeset viewer.