WordPress.org

Forums

Add Comments
[resolved] suggestion (5 posts)

  1. JFrankParnell
    Member
    Posted 2 years ago #

    in this func, i think you need a check for empty:

    function addComments_add_comments( $id, $author, $email, $url, $ip, $comments ) {
    
    	$explodes = explode( '%*%', $comments );
    
    	foreach( $explodes as $comment )
    if($comment == '')continue;

    http://wordpress.org/extend/plugins/add-comments/

  2. Luke Mlsna
    Member
    Plugin Author

    Posted 2 years ago #

    Quite right sir. I will add this to the next version, thank you.

  3. php developer 180111
    Member
    Posted 2 years ago #

    Thank You very much Sir. I was searching for adding multiple comments for the post. I found this very useful.

  4. Luke Mlsna
    Member
    Plugin Author

    Posted 2 years ago #

    Version 1.0.1 is live. Thank you for your input!

  5. JFrankParnell
    Member
    Posted 2 years ago #

    yes, but you could still have an empty $comment, so you should put a check in there, too. Or you could get empty comments.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Add Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic