WordPress Move Comments
Doesn't work: Using Wrong Hooks (7 posts)

  1. Mike Schinkel
    Posted 3 years ago #

    Hi Velvet Blue,

    I downloaded your plugin today and found that it doesn't work. I debugged it and found that you are using the wrong hook in one place: you are using 'comment_save_pre' when you should be using 'edit_comment'; just change on line 36 and it will allow your plugin to save (but you might want to change the name the parameter on line 78 and delete the other references on the return statement for good programming practice, of course.) It's strange because it's perfectly structured otherwise; I wonder if someone changed from 'edit_comment' accidentally?

    The other problem uncovered is that the second time the Quick Reply form is opened between page refreshes it doesn't update the fields. It appears to be something that might have been broken by changes in the how comments are handled via AJAX. You are generating the edit form once after all other comments are rendered in the 'wp_comment_reply' hook but on AJAX WordPress 3.5 does not call that hook.

    I tried to fix it for you but it looks like it's going to require more time than I have this morning so I'll leave it with you.



  2. VelvetBlues.com
    Plugin Author

    Posted 3 years ago #

    Thanks for your help Mike! I'll definitely look into these odd bugs in WP 3.5 and update the plugin.

  3. Mike Schinkel
    Posted 3 years ago #

    Cool. Thanks for acknowledging. Looking forward to the fixes.

  4. Mike Schinkel
    Posted 3 years ago #

    Hi @VelvetBlues:

    Any updates?

  5. ag2reo4s
    Posted 3 years ago #

    I need to admin (move) some comments on my blog, and this plugin is exactly what I need! Unfortunately, I found that it isn't updating the fields when I submit the change. I found this support post...looks like it may be the same issue I am experiencing. Is there any update coming to this plugin? If not, I will need to figure out another way to move my comments.

    If someone wants to work with me, I am interested in learning how to write plugins and I would partner up to fix this plugin. I am a long-time developer, but fairly new to WordPress.

  6. Mike Schinkel
    Posted 3 years ago #

    Hey @ag2reo4s - contact me, let's chat about your past experience and interest in plugin development, maybe I can help.

  7. TechnoViel
    Posted 2 years ago #

    Mike, your my hero! I edited the PHP as you described in line 36 and it now works - I'm using WP3.6.
    Thanks a lot for indicating this.
    @Author: Please fix, it's so easy that it's hard to understand why you haven't done this within 8 months...

    PS: I mainly intend to use this to assign the right parent to comments - WP is not very good at helping users to properly answer comments...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Move Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic