Plugin Directory

Changeset 2996703


Ignore:
Timestamp:
11/15/2023 09:26:00 PM (2 years ago)
Author:
cynderhost
Message:

v2.0.5

Location:
cynderhost/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cynderhost/trunk/README.txt

    r2994578 r2996703  
    3333== Changelog ==
    3434
     35= 2.0.5 =
     36* Fixed: prompting behavior
     37
    3538= 2.0.4 =
    36 * Fix purge URL bug
     39* Fixed: purge URL bug
    3740
    3841= 2.0.3 =
    39 * Fix prompting bug
     42* Fixed: prompting bug
    4043
    4144= 2.0.2 =
    42 * RSS feed purging
     45* Fixed: RSS feed purging
    4346
    4447= 2.0.1 =
    45 * Support for CynderHost Caching Engine v2
     48* Updated: Support for CynderHost Caching Engine v2
    4649
    4750= 1.5.3 =
  • cynderhost/trunk/cynderhost.php

    r2994576 r2996703  
    99 * Plugin URI:        https://cynderhost.com
    1010 * Description:       Provides an easy interface to clear the CynderHost CDN cache, both automatically and programmatically.
    11  * Version:           2.0.4
     11 * Version:           2.0.5
    1212 * Author:            CynderHost
    1313 * Author URI:        https://profiles.wordpress.org/cynderhost/
     
    2424
    2525//Define version
    26 define('CYNDERHOST_VERSION', '2.0.4');
     26define('CYNDERHOST_VERSION', '2.0.5');
    2727
    2828
     
    332332function cynderhost_author_admin_notice()
    333333{
    334     $v = cynderhost_get_admin_notice();
    335     if ($v) //if the admin notice should be displayed, display it
     334    $v = cynderhost_get_admin_notice()['message'];
     335    if ($v == "PURGE") //if the admin notice should be displayed, display it
    336336    {
    337337        $url = add_query_arg("cynderhost_purgecache", "true");
     
    341341                  <p>' . $message . '</p>
    342342                 </div>';
     343    } else if (!empty($v)) {
     344        echo '<div class="notice notice-info is-dismissible">
     345                  <p>' . $v . '</p>
     346                 </div>';
    343347    }
    344348}
     
    347351 * Creates an admin notice as transient that loads on next pageview
    348352 */
    349 function cynderhost_set_admin_notice()
    350 {
    351     set_transient('cynderhost_message', ['message' => true], 30);
     353function cynderhost_set_admin_notice($data = "PURGE")
     354{
     355    set_transient('cynderhost_message', ['message' => $data], 30);
    352356}
    353357
Note: See TracChangeset for help on using the changeset viewer.