Plugin Directory

Changeset 2566824


Ignore:
Timestamp:
07/19/2021 01:50:45 AM (5 years ago)
Author:
cynderhost
Message:

Fix Comment Bug

Location:
cynderhost/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cynderhost/trunk/README.txt

    r2566801 r2566824  
    3232
    3333== Changelog ==
     34= 1.4.14 =
     35* Fixed: Purge comment URL on new auto-approved comment by guest
     36
    3437= 1.4.12 =
    3538* Fixed: WP Admin "Purge Cache" link for non-admin users
  • cynderhost/trunk/cynderhost.php

    r2566801 r2566824  
    99 * Plugin URI:        https://cynderhost.com
    1010 * Description:       Provides an easy interface to clear the CynderHost CDN cache, both automatically and programmatically.
    11  * Version:           1.4.12
     11 * Version:           1.4.14
    1212 * Author:            CynderHost
    1313 * Author URI:        https://profiles.wordpress.org/cynderhost/
     
    2424
    2525//Define version
    26 define('CYNDERHOST_VERSION', '1.4.12');
     26define('CYNDERHOST_VERSION', '1.4.14');
    2727
    2828/**
     
    218218{
    219219    $comment = get_comment($comment);
     220    //check if comment is actually approved and live
     221    if ( wp_get_comment_status( $comment ) != "approved" ){
     222        return null;
     223    }
    220224    if ($comment->comment_parent > 0)
    221225    {
     
    406410add_action('transition_comment_status', 'cynderhost_comment_update_function', 10, 3);
    407411add_action('edit_comment', 'cynderhost_comment_edit_function', 10, 1);
     412add_action('comment_post', 'cynderhost_comment_edit_function', 10, 1);
    408413
    409414//hook to media
Note: See TracChangeset for help on using the changeset viewer.