Support » Plugin: Wizzart - Recent Comments » [Plugin: Wizzart – Recent Comments] bug in displaying posts with links

  • menkaur

    (@menkaur)


    Hey! I noticed that the plugin was displaying the posts with links incorrectly on my blog and fixed it by adding a line:

    if(count($comments)) { // if there are comments fetched (else dont show the widget)
    
    				$output = "";
    
    				foreach($comments as $comment) {
    					<code>-></code>$comment->comment_content = preg_replace("/\<a(.*)\>(.*)\<\/a\>/iU", "$2", $comment->comment_content);

    it strips comment text of links before displaying them.

    Please, upgrade the original plugin code

    http://wordpress.org/extend/plugins/wizzart-recent-comments/

  • The topic ‘[Plugin: Wizzart – Recent Comments] bug in displaying posts with links’ is closed to new replies.