Support » Plugin: Comments Like Dislike » Not working when using ajax

  • net

    (@krstarica)


    Plugin does not work when loading comments using ajax (e.g. when using WP Ajaxify Comments plugin).

    @happy-coders please be so kind to fix this issue by changing the following code in file wp-content/plugins/comments-like-dislike/inc/classes/cld-hook.php in function comments_like_dislike:

    Change:

    if ( is_admin() ) {
        return $comment_text;
    }

    to:

    if ( is_admin() && !wp_doing_ajax() ) {
        return $comment_text;
    }

    Many thanks.

  • The topic ‘Not working when using ajax’ is closed to new replies.