Support » Plugin: WP ULike » Bug: Two like buttons in BuddyPress comments

  • Michael

    (@michael8888)



    Since we updated to version 3.5.1 (I think from 2.9). two like buttons appear in BuddyPress comments. The second one works, the first one produces an error message when clicked. The first one even appears if we disable likes for BuddyPress comments.

    You can see it here: https://4sysops.com/members/paolo/activity/19251/

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@michael8888)

    The bug is inc/general-hooks.php in line 296:

    add_filter( 'bp_activity_comment_content', function( $content ) { return $content . wp_ulike_buddypress('put'); } );

    Whenever someone adds a BuddyPress activity comment, you add your HTML code to the activity content. That is, if you then edit the comment in the BuddyPress admin Activity dashboard this HTML code has been added by your plugin:

    <div class="wpulike wpulike-default " ><div class="wp_ulike_general_class wp_ulike_is_unliked"><button type="button"
    					data-ulike-id=""
    					data-ulike-nonce="2342a8d625"
    					data-ulike-type="likeThisActivity"
    					data-ulike-status="3" class="wp_ulike_btn wp_ulike_put_image"></button><span class="count-box">0</span>			</div><div class="wp_ulike_likers_wrapper wp_ulike_display_inline"></div>		</div>
    Plugin Author Alimir

    (@alimir)

    Thanks for report @michael8888
    I’ll fix this issue in the next version 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.