Plugin Directory

Changeset 1728064

Timestamp:
09/11/2017 01:15:31 PM (7 years ago)
Author:
pauldewouters
Message:

Preparing for 1.4.1 release

Location:
comment-popularity/trunk
Files:
24 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • comment-popularity/trunk

    • Property svn:ignore
      •  

        old new  
        1 deploy.sh readme.md .git .gitignore
         1README.md
         2Thumbs.db
         3.github/*
         4.git
         5.gitattributes
         6.gitignore
  • comment-popularity/trunk/inc/class-visitor.php

    r1396469 r1728064  
    283283    public function unlog_vote( $comment_id ) {
    284284
    285         $logged_votes = $this->retrieve_logged_votes();
     285        $comments_voted_on = $this->retrieve_logged_votes();
     286        $logged_votes      = $this->retrieve_logged_votes();
    286287
    287288        unset( $logged_votes[ 'comment_id_' . $comment_id ] );
    288289
    289         update_user_option( $this->get_id(), 'hmn_comments_voted_on', $comments_voted_on );
    290 
     290        if ( ! empty( $comments_voted_on ) ) {
     291            update_user_option( $this->get_id(), 'hmn_comments_voted_on', $comments_voted_on );
     292        }
    291293    }
    292294
Note: See TracChangeset for help on using the changeset viewer.