<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Henry Moyo &#187; Wordpress</title>
	<atom:link href="http://blog.henrymoyo.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.henrymoyo.com</link>
	<description>Web design &#38; web development Canterbury - London</description>
	<lastBuildDate>Mon, 10 Aug 2009 13:45:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=1726</generator>
		<item>
		<title>WordPress 2.7 Recent Comments Link Not Working</title>
		<link>http://blog.henrymoyo.com/2009/01/22/wordpress-27-recent-comments-link-not-working/</link>
		<comments>http://blog.henrymoyo.com/2009/01/22/wordpress-27-recent-comments-link-not-working/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 02:14:07 +0000</pubDate>
		<dc:creator>henry</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[reviews]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://blog.henrymoyo.com/?p=258</guid>
		<description><![CDATA[Just to give you the heads up if you use the sidebar on your wordpress blog. I recently upgraded my blog to the latest version &#8211; WordPress 2.7 and have found a small bug which I&#8217;m not entirely sure wasn&#8217;t there before, but I only noticed it today after the upgrade. I use the Recent [...]]]></description>
			<content:encoded><![CDATA[<p>Just to give you the heads up if you use the sidebar on your wordpress blog. I recently upgraded my blog to the latest version &#8211; WordPress 2.7 and have found a small bug which I&#8217;m not entirely sure wasn&#8217;t there before, but I only noticed it today after the upgrade.</p>
<p>I use the Recent Comment widget on the sidebar to display recent comments on my posts in the form of &#8220;{authorLink} On {postLink}&#8221;. I noticed that the author link (links to website of whoever posted a comment on one of my posts) didn&#8217;t seem to work in all browsers accept Google Chrome (strangely enough).<br />
<span id="more-258"></span><br />
On further investigation into the source of the page, I realised that for some reason the link generated was urlEncoded and not formated right.</p>
<p>e.g</p>
<p><span style="color: #b9dc51;">&#8216;http://www.example.com%27%20rel%3D%27external%20nofollow&#8217;</span></p>
<p>instead of</p>
<p><span style="color: #b9dc51;">&#8220;http://www.example.com&#8221; rel=&#8221;external nofollow&#8221;</span></p>
<p>After a few minutes of debugging and digging around through the wordpress pages. I eventually found the source of the problem located on <span style="color: #f90558;">line 148</span> in <span style="color: #f90558;">category-template.php</span> in the <span style="color: #f90558;">wp-includes</span> folder.</p>
<p><span style="color: #b9dc51;">$return = &#8220;&lt;a href=&#8217;$url&#8217; rel=&#8217;external nofollow&#8217; class=&#8217;url&#8217;&gt;$author&lt;/a&gt;&#8221;;</span></p>
<p>I simply changed the line above to</p>
<p><span style="color: #b9dc51;">$return = &#8220;&lt;a href=\&#8221;$url\&#8221; rel=\&#8221;external nofollow\&#8221; class=\&#8221;url\&#8221;&gt;$author&lt;/a&gt;&#8221;;</span></p>
<p>and that sorted out the format of the output string and PRESTO the links work again.</p>
<p style="padding-left: 30px;"><span style="color: #99cc00;"><span style="color: #800080;">* UPDATE &#8211; 9th February 2009</span><br />
</span></p>
<p style="padding-left: 30px;">Just a heads up on this post.</p>
<p style="padding-left: 30px;">Some WP users have reported that they&#8217;ve found the line in question in &#8220;comment-template.php&#8221; and not in &#8220;category-template.php&#8221;. So if you cant find it in one of them, it&#8217;s most likely in the other.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.henrymoyo.com/2009/01/22/wordpress-27-recent-comments-link-not-working/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
