Changeset 2996703
- Timestamp:
- 11/15/2023 09:26:00 PM (2 years ago)
- Location:
- cynderhost/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (1 diff)
-
cynderhost.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cynderhost/trunk/README.txt
r2994578 r2996703 33 33 == Changelog == 34 34 35 = 2.0.5 = 36 * Fixed: prompting behavior 37 35 38 = 2.0.4 = 36 * Fix purge URL bug39 * Fixed: purge URL bug 37 40 38 41 = 2.0.3 = 39 * Fix prompting bug42 * Fixed: prompting bug 40 43 41 44 = 2.0.2 = 42 * RSS feed purging45 * Fixed: RSS feed purging 43 46 44 47 = 2.0.1 = 45 * Support for CynderHost Caching Engine v248 * Updated: Support for CynderHost Caching Engine v2 46 49 47 50 = 1.5.3 = -
cynderhost/trunk/cynderhost.php
r2994576 r2996703 9 9 * Plugin URI: https://cynderhost.com 10 10 * Description: Provides an easy interface to clear the CynderHost CDN cache, both automatically and programmatically. 11 * Version: 2.0. 411 * Version: 2.0.5 12 12 * Author: CynderHost 13 13 * Author URI: https://profiles.wordpress.org/cynderhost/ … … 24 24 25 25 //Define version 26 define('CYNDERHOST_VERSION', '2.0. 4');26 define('CYNDERHOST_VERSION', '2.0.5'); 27 27 28 28 … … 332 332 function cynderhost_author_admin_notice() 333 333 { 334 $v = cynderhost_get_admin_notice() ;335 if ($v ) //if the admin notice should be displayed, display it334 $v = cynderhost_get_admin_notice()['message']; 335 if ($v == "PURGE") //if the admin notice should be displayed, display it 336 336 { 337 337 $url = add_query_arg("cynderhost_purgecache", "true"); … … 341 341 <p>' . $message . '</p> 342 342 </div>'; 343 } else if (!empty($v)) { 344 echo '<div class="notice notice-info is-dismissible"> 345 <p>' . $v . '</p> 346 </div>'; 343 347 } 344 348 } … … 347 351 * Creates an admin notice as transient that loads on next pageview 348 352 */ 349 function cynderhost_set_admin_notice( )350 { 351 set_transient('cynderhost_message', ['message' => true], 30);353 function cynderhost_set_admin_notice($data = "PURGE") 354 { 355 set_transient('cynderhost_message', ['message' => $data], 30); 352 356 } 353 357
Note: See TracChangeset
for help on using the changeset viewer.