<?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>Lester Chan's WordPress Plugins &#187; fixes</title>
	<atom:link href="http://lesterchan.net/wordpress/tag/fixes/feed/" rel="self" type="application/rss+xml" />
	<link>http://lesterchan.net/wordpress</link>
	<description>Lester Chan's WordPress Plugins Development Blog</description>
	<lastBuildDate>Sat, 07 Jan 2012 03:01:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>My Plugins And WordPress 2.7</title>
		<link>http://lesterchan.net/wordpress/2008/11/01/my-plugins-and-wordpress-27/</link>
		<comments>http://lesterchan.net/wordpress/2008/11/01/my-plugins-and-wordpress-27/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 14:38:22 +0000</pubDate>
		<dc:creator>Lester Chan</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP-EMail]]></category>
		<category><![CDATA[WP-Print]]></category>
		<category><![CDATA[2.7]]></category>
		<category><![CDATA[fixes]]></category>

		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=210</guid>
		<description><![CDATA[I tested both 1.31/2.31 version as well as 1.40/2.40 version of my plugins and they appear to work fine in WordPress 2.7 EXCEPT for WP-Email and WP-Print. It is because for some reasons the canonical redirect happens before my template &#8230; <a href="http://lesterchan.net/wordpress/2008/11/01/my-plugins-and-wordpress-27/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I tested both 1.31/2.31 version as well as 1.40/2.40 version of my plugins and they appear to work fine in WordPress 2.7 <strong>EXCEPT</strong> for WP-Email and WP-Print. It is because for some reasons the canonical redirect happens before my template redirect and hence /email/ will always be an invalid page in WordPress eyes. This issue is not present in WordPress 2.6.</p>
<p>My efforts had paid off when my plugins undergo major cosmetic changes back in WordPress 2.5 to accommodate the new WordPress 2.5 design. It is because for WordPress 2.7, I need not do anything and the design just fits right in. I just need to add in the icon for the admin menu for WP-DBManager, WP-DownloadManager, WP-Email, WP-Polls and WP-PostRatings.</p>
<p>Here are the fixes to get WP-Email 2.31 and WP-Print 2.31 to work with WordPress 2.7. I will not update WP-Email 2.31 and WP-Print 2.31 with this fix, instead I will just leave the fix to be downloadeded on this site. Do note that the fix will make WP-Email and WP-Print work for WordPress 2.7 <strong>ONLY</strong>.</p>
<p><strong>Here is the fix for WP-Email 2.31:</strong></p>
<blockquote><p>
In wp-email.php:</p>
<p>Find (Line 106, Line 120, Line 134 &#038; Line 147):</p>
<pre lang="php" line="1">
$rewrite_rules = array_slice($rewrite_rules, 4, 1);
</pre>
<p>Replace:</p>
<pre lang="php" line="1">
$rewrite_rules = array_slice($rewrite_rules, 5, 1);
</pre>
<p>Find (Line 758):</p>
<pre lang="php" line="1">
add_action('template_redirect', 'wp_email');
</pre>
<p>Replace:</p>
<pre lang="php" line="1">
add_action('template_redirect', 'wp_email', 5);
</pre>
</blockquote>
<p>Alternatively you can download the fixed wp-email.php:</p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong>Here is the fix for WP-Print 2.31:</strong></p>
<blockquote><p>
In wp-print.php:</p>
<p>Find (Line 79 &#038; Line 95):</p>
<pre lang="php" line="1">
$rewrite_rules = array_slice($rewrite_rules, 4, 1);
</pre>
<p>Replace:</p>
<pre lang="php" line="1">
$rewrite_rules = array_slice($rewrite_rules, 5, 1);
</pre>
<p>Find (Line 395):</p>
<pre lang="php" line="1">
add_action('template_redirect', 'wp_print');
</pre>
<p>Replace:</p>
<pre lang="php" line="1">
add_action('template_redirect', 'wp_print', 5);
</pre>
</blockquote>
<p>Alternatively you can download the fixed wp-print.php:</p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p>After uploading the fix, you need to regenerate permalink. Go to (<strong>WP-Admin -> Settings -> Permalinks -> Save Changes</strong>)</p>
<p>I have already committed these changes to WP-Email 2.40 and WP-Print 2.40 to the SVN.</p>
<p>Tentatively WP-DBManager, WP-DownloadManager, WP-Email, WP-Polls and WP-PostRatings will work for WordPress 2.7 only because of the new icon in the admin menu.</p>
]]></content:encoded>
			<wfw:commentRss>http://lesterchan.net/wordpress/2008/11/01/my-plugins-and-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Database Caching 1/9 queries in 0.006 seconds using memcached
Object Caching 300/310 objects using xcache
Content Delivery Network via cdn.lesterchan.net

Served from: lesterchan.net @ 2012-02-12 06:59:48 -->
