<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1</title>
	<atom:link href="http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/</link>
	<description>Tips and Tricks on Computing, Technology and Gadgets.</description>
	<pubDate>Sun, 23 Nov 2008 20:53:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Marcin</title>
		<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/#comment-5131</link>
		<dc:creator>Marcin</dc:creator>
		<pubDate>Tue, 14 Oct 2008 23:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.tipandtrick.net/?p=877#comment-5131</guid>
		<description>In 2.6.1 it should look as this:
&lt;code&gt;
case 'approve':
$query = $wpdb-&#62;prepare("UPDATE wpdb-&#62;comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
if ( get_option('comments_notify') == true ) {
$comment = get_comment($comment_id);
wp_notify_postauthor($comment_id, $comment-&#62;comment_type);
			}
&lt;/code&gt;

The only change is adding:
&lt;code&gt;
 == true
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>In 2.6.1 it should look as this:<br />
<code><br />
case 'approve':<br />
$query = $wpdb-&gt;prepare("UPDATE wpdb-&gt;comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);<br />
if ( get_option('comments_notify') == true ) {<br />
$comment = get_comment($comment_id);<br />
wp_notify_postauthor($comment_id, $comment-&gt;comment_type);<br />
			}<br />
</code></p>
<p>The only change is adding:<br />
<code><br />
 == true<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ordersomabuyg</title>
		<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/#comment-4868</link>
		<dc:creator>ordersomabuyg</dc:creator>
		<pubDate>Sun, 21 Sep 2008 21:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.tipandtrick.net/?p=877#comment-4868</guid>
		<description>Wow Cool !
Super Man
Nice Site</description>
		<content:encoded><![CDATA[<p>Wow Cool !<br />
Super Man<br />
Nice Site</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/#comment-4723</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 03 Sep 2008 20:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.tipandtrick.net/?p=877#comment-4723</guid>
		<description>This WPMU behavior was driving me a bit nuts. Much thanks for sharing your solution!</description>
		<content:encoded><![CDATA[<p>This WPMU behavior was driving me a bit nuts. Much thanks for sharing your solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/#comment-3920</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Fri, 11 Jul 2008 09:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.tipandtrick.net/?p=877#comment-3920</guid>
		<description>Thanks for the post 'admin' - I help manage a (non?)corporate blog, and my boss stopped getting email notifications since upgrading to 2.5.x - I do believe your suggested patch has fixed it.

So, again thanks very much!</description>
		<content:encoded><![CDATA[<p>Thanks for the post &#8216;admin&#8217; - I help manage a (non?)corporate blog, and my boss stopped getting email notifications since upgrading to 2.5.x - I do believe your suggested patch has fixed it.</p>
<p>So, again thanks very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillermo Scharffenorth</title>
		<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/#comment-3700</link>
		<dc:creator>Guillermo Scharffenorth</dc:creator>
		<pubDate>Fri, 27 Jun 2008 12:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.tipandtrick.net/?p=877#comment-3700</guid>
		<description>Hello,

Tried it. It did not work. Thanks anyways.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Tried it. It did not work. Thanks anyways.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/#comment-3616</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 20 Jun 2008 04:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.tipandtrick.net/?p=877#comment-3616</guid>
		<description>Try to just add in the additional lines (the difference).</description>
		<content:encoded><![CDATA[<p>Try to just add in the additional lines (the difference).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillermo Scharffenorth</title>
		<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/#comment-3614</link>
		<dc:creator>Guillermo Scharffenorth</dc:creator>
		<pubDate>Fri, 20 Jun 2008 03:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.tipandtrick.net/?p=877#comment-3614</guid>
		<description>Hi,

The code I posted is from 2.5.1. Do you think that replacing this code with the one you posted could fix this issue?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The code I posted is from 2.5.1. Do you think that replacing this code with the one you posted could fix this issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/#comment-3613</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 20 Jun 2008 03:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.tipandtrick.net/?p=877#comment-3613</guid>
		<description>version 2.5.</description>
		<content:encoded><![CDATA[<p>version 2.5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillermo Scharffenorth</title>
		<link>http://www.tipandtrick.net/2008/notification-emails-not-send-after-comment-approval-in-wordpress-25-and-251/#comment-3612</link>
		<dc:creator>Guillermo Scharffenorth</dc:creator>
		<pubDate>Fri, 20 Jun 2008 03:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.tipandtrick.net/?p=877#comment-3612</guid>
		<description>Hello,

The code you printed under 'before' is different in that the one in wp-includes/comment.php. This is the code in comment.php:

&lt;code&gt;case 'approve':
			$query = "UPDATE $wpdb-&#62;comments SET comment_approved='1' WHERE comment_ID='$comment_id' LIMIT 1";
			break;
		case 'spam':
			$query = "UPDATE $wpdb-&#62;comments SET comment_approved='spam' WHERE comment_ID='$comment_id' LIMIT 1";&lt;/code&gt;

Which version of WP did you get that code from?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>The code you printed under &#8216;before&#8217; is different in that the one in wp-includes/comment.php. This is the code in comment.php:</p>
<p><code>case 'approve':<br />
			$query = "UPDATE $wpdb-&gt;comments SET comment_approved='1' WHERE comment_ID='$comment_id' LIMIT 1";<br />
			break;<br />
		case 'spam':<br />
			$query = "UPDATE $wpdb-&gt;comments SET comment_approved='spam' WHERE comment_ID='$comment_id' LIMIT 1";</code></p>
<p>Which version of WP did you get that code from?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
