<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Disable WordPress Plugins update indicator for inactive plugins</title>
	<atom:link href="http://www.codehooligans.com/2009/08/30/disable-wordpress-plugins-update-indicator-for-inactive-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codehooligans.com/2009/08/30/disable-wordpress-plugins-update-indicator-for-inactive-plugins/</link>
	<description>I'm the Devil in the code!</description>
	<lastBuildDate>Fri, 05 Mar 2010 02:52:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul Menard</title>
		<link>http://www.codehooligans.com/2009/08/30/disable-wordpress-plugins-update-indicator-for-inactive-plugins/comment-page-1/#comment-43565</link>
		<dc:creator>Paul Menard</dc:creator>
		<pubDate>Wed, 02 Sep 2009 15:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.codehooligans.com/?p=463#comment-43565</guid>
		<description>@Bill Woodland: Woops. Caught me on that one Bill. you are correct sir.</description>
		<content:encoded><![CDATA[<p>@Bill Woodland: Woops. Caught me on that one Bill. you are correct sir.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Woodland</title>
		<link>http://www.codehooligans.com/2009/08/30/disable-wordpress-plugins-update-indicator-for-inactive-plugins/comment-page-1/#comment-43564</link>
		<dc:creator>Bill Woodland</dc:creator>
		<pubDate>Wed, 02 Sep 2009 15:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.codehooligans.com/?p=463#comment-43564</guid>
		<description>oops...left() is ASP (VBScript).  In PHP you would use substr($wp_version,0,3) for string comparison.  I get my languages confused in my old age.

I agree that comparing the actual number would be better than comparing a string, but intval returns an integer.  Your test above is the same as saying 

if (intval($wp_version) &gt;= 2) 

In this case, it&#039;s equal to 2, so it runs the 2.8 hook.  For more accuracy, use floatval instead:

if (floatval($wp_version) &gt;= 2.8)</description>
		<content:encoded><![CDATA[<p>oops&#8230;left() is ASP (VBScript).  In PHP you would use substr($wp_version,0,3) for string comparison.  I get my languages confused in my old age.</p>
<p>I agree that comparing the actual number would be better than comparing a string, but intval returns an integer.  Your test above is the same as saying </p>
<p>if (intval($wp_version) &gt;= 2) </p>
<p>In this case, it&#8217;s equal to 2, so it runs the 2.8 hook.  For more accuracy, use floatval instead:</p>
<p>if (floatval($wp_version) &gt;= 2.8)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Menard</title>
		<link>http://www.codehooligans.com/2009/08/30/disable-wordpress-plugins-update-indicator-for-inactive-plugins/comment-page-1/#comment-43546</link>
		<dc:creator>Paul Menard</dc:creator>
		<pubDate>Tue, 01 Sep 2009 22:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.codehooligans.com/?p=463#comment-43546</guid>
		<description>@Bill Woodland: Well you could do something like that. The code is provided as is. Feel free to extent it for your needs. You can actually leave both lines uncommented and they will not effect your site. But I find this grossly inefficient. 

BTW, I applied your new lines and received an error. Seems &#039;left()&#039; is not valid. In some other coding I generally check the WP version by converting it to an intval then comparing it to what I want. Something like this should work. Or I should add it works for me. 
if (intval($wp_version) &gt;= 2.8) {
	add_filter(&#039;transient_update_plugins&#039;, &#039;update_active_plugins&#039;);    // Hook for 2.8.x
} else {
	add_filter( &#039;option_update_plugins&#039;, &#039;update_active_plugins&#039;);    // Hook for 2.7.x
}


Thanks for the tip though. I just got lazy after digging through the WP core code looking how to implement this code. It was on a Sunday afternoon and I was fighting a nap. cheers.</description>
		<content:encoded><![CDATA[<p>@Bill Woodland: Well you could do something like that. The code is provided as is. Feel free to extent it for your needs. You can actually leave both lines uncommented and they will not effect your site. But I find this grossly inefficient. </p>
<p>BTW, I applied your new lines and received an error. Seems &#8216;left()&#8217; is not valid. In some other coding I generally check the WP version by converting it to an intval then comparing it to what I want. Something like this should work. Or I should add it works for me.<br />
if (intval($wp_version) &gt;= 2.8) {<br />
	add_filter(&#8216;transient_update_plugins&#8217;, &#8216;update_active_plugins&#8217;);    // Hook for 2.8.x<br />
} else {<br />
	add_filter( &#8216;option_update_plugins&#8217;, &#8216;update_active_plugins&#8217;);    // Hook for 2.7.x<br />
}</p>
<p>Thanks for the tip though. I just got lazy after digging through the WP core code looking how to implement this code. It was on a Sunday afternoon and I was fighting a nap. cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Woodland</title>
		<link>http://www.codehooligans.com/2009/08/30/disable-wordpress-plugins-update-indicator-for-inactive-plugins/comment-page-1/#comment-43545</link>
		<dc:creator>Bill Woodland</dc:creator>
		<pubDate>Tue, 01 Sep 2009 22:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.codehooligans.com/?p=463#comment-43545</guid>
		<description>Could we just replace the last two lines with this?

if (left($wp_version,3) ==&#039;2.8&#039;) {
	add_filter(&#039;transient_update_plugins&#039;, &#039;update_active_plugins&#039;);    // Hook for 2.8.x
} else {
	add_filter( &#039;option_update_plugins&#039;, &#039;update_active_plugins&#039;);    // Hook for 2.7.x
}</description>
		<content:encoded><![CDATA[<p>Could we just replace the last two lines with this?</p>
<p>if (left($wp_version,3) ==&#8217;2.8&#8242;) {<br />
	add_filter(&#8216;transient_update_plugins&#8217;, &#8216;update_active_plugins&#8217;);    // Hook for 2.8.x<br />
} else {<br />
	add_filter( &#8216;option_update_plugins&#8217;, &#8216;update_active_plugins&#8217;);    // Hook for 2.7.x<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Disable WordPress Plugins update indicator for inactive plugins &#8230; &#124; Hot WP Themes</title>
		<link>http://www.codehooligans.com/2009/08/30/disable-wordpress-plugins-update-indicator-for-inactive-plugins/comment-page-1/#comment-43506</link>
		<dc:creator>Disable WordPress Plugins update indicator for inactive plugins &#8230; &#124; Hot WP Themes</dc:creator>
		<pubDate>Mon, 31 Aug 2009 03:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.codehooligans.com/?p=463#comment-43506</guid>
		<description>[...] original here: Disable WordPress Plugins update indicator for inactive plugins &#8230; Related Posts:Prevent Wordpress Plugin Update From Deleting Important Folder In ...Lester [...]</description>
		<content:encoded><![CDATA[<p>[...] original here: Disable WordPress Plugins update indicator for inactive plugins &#8230; Related Posts:Prevent Wordpress Plugin Update From Deleting Important Folder In &#8230;Lester [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
