<?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: Spelling WordPress Always Correctly</title>
	<atom:link href="http://wpengineer.com/spelling-wordpress-always-correctly/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/spelling-wordpress-always-correctly/</link>
	<description>WordPress News, Hacks, Tipps, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Sun, 14 Mar 2010 21:55:13 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrew C</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-3552</link>
		<dc:creator>Andrew C</dc:creator>
		<pubDate>Fri, 19 Feb 2010 21:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-3552</guid>
		<description>#1 - How can I Correct the spelling when I save/publish a post? 

#2 - As you can see (in the code below) I&#039;m only changing the_title and looking for &quot;exclusive&quot; or &quot;mp3&quot; or both. How can I COMBINE this function?

this is my code:

# write EXCLUSIVE Correct
function writeexclusiveCorrect($content) {
	$content = str_ireplace(&quot;exclusive&quot;,&quot;EXCLUSIVE&quot;, $content);
	return $content;
}
add_filter(&#039;the_title&#039;, &#039;writeexclusiveCorrect&#039;,1);

# write MP3 Correct
function writemp3Correct($content) {
	$content = str_ireplace(&quot;mp3&quot;,&quot;MP3&quot;, $content);
	return $content;
}
add_filter(&#039;the_title&#039;, &#039;writemp3Correct&#039;,1);</description>
		<content:encoded><![CDATA[<p>#1 - How can I Correct the spelling when I save/publish a post? </p>
<p>#2 - As you can see (in the code below) I'm only changing the_title and looking for "exclusive" or "mp3" or both. How can I COMBINE this function?</p>
<p>this is my code:</p>
<p># write EXCLUSIVE Correct<br />
function writeexclusiveCorrect($content) {<br />
	$content = str_ireplace("exclusive","EXCLUSIVE", $content);<br />
	return $content;<br />
}<br />
add_filter('the_title', 'writeexclusiveCorrect',1);</p>
<p># write MP3 Correct<br />
function writemp3Correct($content) {<br />
	$content = str_ireplace("mp3","MP3", $content);<br />
	return $content;<br />
}<br />
add_filter('the_title', 'writemp3Correct',1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-1513</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sun, 19 Jul 2009 16:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-1513</guid>
		<description>vajay, i prefer to PHP5.</description>
		<content:encoded><![CDATA[<p>vajay, i prefer to PHP5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijay</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-1510</link>
		<dc:creator>vijay</dc:creator>
		<pubDate>Sun, 19 Jul 2009 08:36:53 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-1510</guid>
		<description>I have PHP4 and PHP5 on my server. Which one should I choose for running wordpress?

And what needs to be changed in the default php.ini file?</description>
		<content:encoded><![CDATA[<p>I have PHP4 and PHP5 on my server. Which one should I choose for running wordpress?</p>
<p>And what needs to be changed in the default php.ini file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-875</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 24 Mar 2009 07:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-875</guid>
		<description>Richard, not that i know.</description>
		<content:encoded><![CDATA[<p>Richard, not that i know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-873</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 24 Mar 2009 06:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-873</guid>
		<description>Thanks Michael, so maybe the better bet is using QuickTags when possible.

Is there a way to show a list of all filters being loaded?</description>
		<content:encoded><![CDATA[<p>Thanks Michael, so maybe the better bet is using QuickTags when possible.</p>
<p>Is there a way to show a list of all filters being loaded?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-870</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 23 Mar 2009 21:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-870</guid>
		<description>Richard: use this kind of functions carefully. Every filter slow down the peformance of your website. 
I don&#039;t see any security problems with filters like that.</description>
		<content:encoded><![CDATA[<p>Richard: use this kind of functions carefully. Every filter slow down the peformance of your website.<br />
I don't see any security problems with filters like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-868</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Mon, 23 Mar 2009 17:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-868</guid>
		<description>Interesting function, you could do lots of things with this, like add a plugin function WriteMyPostalAddress
change &quot; to &#039; ...(&#039;myaddress&#039;,&#039;your html
more html
etc&#039;, $content);
add_filter ..WriteMyPostalAddress

The question  I have is say you do a series of plugin/function/shortcuts like this, is there an overhead? 
or is there any issues with that type of plugin shortcut?

Is there any additional security or any additional code I should add to this type of simple admin-less plugin?

As is, my WriteMyPostalAddress test using dreamweaver created wysiwyg table, code just plopped in, works great!</description>
		<content:encoded><![CDATA[<p>Interesting function, you could do lots of things with this, like add a plugin function WriteMyPostalAddress<br />
change " to ' ...('myaddress','your html<br />
more html<br />
etc', $content);<br />
add_filter ..WriteMyPostalAddress</p>
<p>The question  I have is say you do a series of plugin/function/shortcuts like this, is there an overhead?<br />
or is there any issues with that type of plugin shortcut?</p>
<p>Is there any additional security or any additional code I should add to this type of simple admin-less plugin?</p>
<p>As is, my WriteMyPostalAddress test using dreamweaver created wysiwyg table, code just plopped in, works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Come fare: Scrivere bene &#8220;WordPress&#8221; &#124; Altamente Decorativo</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-643</link>
		<dc:creator>Come fare: Scrivere bene &#8220;WordPress&#8221; &#124; Altamente Decorativo</dc:creator>
		<pubDate>Sun, 08 Feb 2009 23:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-643</guid>
		<description>[...] la pensate com Matt o per motivi vostri volete arrivare anche voi a questo risultato, su WpEngineer ho trovato questo codice da aggiungere al nostro [...]</description>
		<content:encoded><![CDATA[<p>[...] la pensate com Matt o per motivi vostri volete arrivare anche voi a questo risultato, su WpEngineer ho trovato questo codice da aggiungere al nostro [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Google&#8217;s now Evil? Is WordPress next? :: Christopher Ross</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-641</link>
		<dc:creator>Google&#8217;s now Evil? Is WordPress next? :: Christopher Ross</dc:creator>
		<pubDate>Sun, 08 Feb 2009 18:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-641</guid>
		<description>[...] it really such a bad thing to standardize on the name? As Michael points out at WP Engineer, it is a trademark and it should always be presented correctly but should Matt and the boys at [...]</description>
		<content:encoded><![CDATA[<p>[...] it really such a bad thing to standardize on the name? As Michael points out at WP Engineer, it is a trademark and it should always be presented correctly but should Matt and the boys at [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress Logogate - FirstDayBlack</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-594</link>
		<dc:creator>WordPress Logogate - FirstDayBlack</dc:creator>
		<pubDate>Mon, 02 Feb 2009 10:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-594</guid>
		<description>[...] will, kann auch h&#228;ndisch ein Codesnippet in sein Theme einf&#252;gen, dass bei den WP-Engineers zu haben [...]</description>
		<content:encoded><![CDATA[<p>[...] will, kann auch h&#228;ndisch ein Codesnippet in sein Theme einf&#252;gen, dass bei den WP-Engineers zu haben [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: O caso Logogate e a grafia correta do WordPress &#124; pBlog</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-592</link>
		<dc:creator>O caso Logogate e a grafia correta do WordPress &#124; pBlog</dc:creator>
		<pubDate>Sun, 01 Feb 2009 21:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-592</guid>
		<description>[...] Uma outra solução, mais discreta e minimalista, é incluir o código abaixo no arquivo functions.php do seu tema (caso o arquivo não exista, crie-o). Funciona só em servidores que rodem PHP 5, e os créditos vão para o WP Engineer: [...]</description>
		<content:encoded><![CDATA[<p>[...] Uma outra solução, mais discreta e minimalista, é incluir o código abaixo no arquivo functions.php do seu tema (caso o arquivo não exista, crie-o). Funciona só em servidores que rodem PHP 5, e os créditos vão para o WP Engineer: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-584</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 31 Jan 2009 18:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-584</guid>
		<description>Claudius, thats correct.</description>
		<content:encoded><![CDATA[<p>Claudius, thats correct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Ross</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-580</link>
		<dc:creator>Christopher Ross</dc:creator>
		<pubDate>Sat, 31 Jan 2009 14:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-580</guid>
		<description>Michael, thanks for this! I&#039;ve been looking for a way to do something similar for one of my plugins. - Chris</description>
		<content:encoded><![CDATA[<p>Michael, thanks for this! I've been looking for a way to do something similar for one of my plugins. - Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudius Coenen</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-579</link>
		<dc:creator>Claudius Coenen</dc:creator>
		<pubDate>Sat, 31 Jan 2009 09:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-579</guid>
		<description>&lt;blockquote cite=&quot;Michael&quot;&gt;WordPress.org in your browser and it works&lt;/blockquote&gt;

That&#039;s not fully correct. It works for domain-names, which are case-insensitive by definition. But it does not work if someone had wordpress as part of their path and runs a linux/unix server (which &lt;em&gt;are&lt;/em&gt; case sensitive when it comes to paths).

So this is really a difference:

http://example.com/wordpress
http://example.com/WordPress

They will point to different directories or fail to do so.</description>
		<content:encoded><![CDATA[<blockquote cite="Michael"><p>WordPress.org in your browser and it works</p></blockquote>
<p>That's not fully correct. It works for domain-names, which are case-insensitive by definition. But it does not work if someone had wordpress as part of their path and runs a linux/unix server (which <em>are</em> case sensitive when it comes to paths).</p>
<p>So this is really a difference:</p>
<p><a href="http://example.com/wordpress" rel="nofollow" class="liexternal">http://example.com/wordpress</a><br />
<a href="http://example.com/WordPress" rel="nofollow" class="liexternal">http://example.com/WordPress</a></p>
<p>They will point to different directories or fail to do so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WPCult</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-578</link>
		<dc:creator>WPCult</dc:creator>
		<pubDate>Sat, 31 Jan 2009 06:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-578</guid>
		<description>That would make Matt a happy boy.</description>
		<content:encoded><![CDATA[<p>That would make Matt a happy boy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-577</link>
		<dc:creator>Frederick</dc:creator>
		<pubDate>Sat, 31 Jan 2009 03:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-577</guid>
		<description>Also, (sorry for the double post), just to point something out. If the function takes an incorrect rendition of &#039;WordPress&#039; and makes it into the correct &#039;WordPress&#039;, shouldn&#039;t the function be a bit more linguistically correct?

What I mean is, &#039;writeWordPressCorrect&#039; misuses an adjective in place of an adverb. It should be &#039;writeWordPressCorrectly&#039;.</description>
		<content:encoded><![CDATA[<p>Also, (sorry for the double post), just to point something out. If the function takes an incorrect rendition of 'WordPress' and makes it into the correct 'WordPress', shouldn't the function be a bit more linguistically correct?</p>
<p>What I mean is, 'writeWordPressCorrect' misuses an adjective in place of an adverb. It should be 'writeWordPressCorrectly'.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-576</link>
		<dc:creator>Frederick</dc:creator>
		<pubDate>Sat, 31 Jan 2009 03:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-576</guid>
		<description>Indeed, running the filter upon saving the post would save a lot of performance.

Also, using preg_replace as recommended above is not a suitable replacement for high-traffic sites, since Perl-regular-expression search-and-replace is slower than string search-and-replace... it adds up.</description>
		<content:encoded><![CDATA[<p>Indeed, running the filter upon saving the post would save a lot of performance.</p>
<p>Also, using preg_replace as recommended above is not a suitable replacement for high-traffic sites, since Perl-regular-expression search-and-replace is slower than string search-and-replace... it adds up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: More WordPress Logogate &#171; Lorelle on WordPress</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-574</link>
		<dc:creator>More WordPress Logogate &#171; Lorelle on WordPress</dc:creator>
		<pubDate>Sat, 31 Jan 2009 00:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-574</guid>
		<description>[...] If you like to do things manually, you can add the code manually, as WPEngineer shows in &#8220;Spelling WordPress Always Correctly&#8221;. [...]</description>
		<content:encoded><![CDATA[<p>[...] If you like to do things manually, you can add the code manually, as WPEngineer shows in &#8220;Spelling WordPress Always Correctly&#8221;. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-571</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 30 Jan 2009 20:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-571</guid>
		<description>Rich, str_ireplace is only available in PHP5.
But mine and Wesley&#039;s snippets affects urls in the content and the title, not the permalink.
But there is no problem, type WordPress.org in your browser and it works ;)

Another option is to run those filters on saving the post. That saves alot performance.</description>
		<content:encoded><![CDATA[<p>Rich, str_ireplace is only available in PHP5.<br />
But mine and Wesley's snippets affects urls in the content and the title, not the permalink.<br />
But there is no problem, type WordPress.org in your browser and it works <img src='http://wpengineer.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Another option is to run those filters on saving the post. That saves alot performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Pedley</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-570</link>
		<dc:creator>Rich Pedley</dc:creator>
		<pubDate>Fri, 30 Jan 2009 20:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-570</guid>
		<description>Does either the php5, or php4 version affect url&#039;s?</description>
		<content:encoded><![CDATA[<p>Does either the php5, or php4 version affect url's?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-569</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 30 Jan 2009 19:28:37 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-569</guid>
		<description>Thanks Wesley, post updated.</description>
		<content:encoded><![CDATA[<p>Thanks Wesley, post updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wesley</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-568</link>
		<dc:creator>Wesley</dc:creator>
		<pubDate>Fri, 30 Jan 2009 19:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-568</guid>
		<description>str_ireplace is PHP5 only. For a solution that also works in php4, do : 

preg_replace(&#039;/wordpress/i&#039;, &#039;WordPress&#039;, $content); 

(untested)</description>
		<content:encoded><![CDATA[<p>str_ireplace is PHP5 only. For a solution that also works in php4, do : </p>
<p>preg_replace('/wordpress/i', 'WordPress', $content); </p>
<p>(untested)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-567</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 30 Jan 2009 19:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-567</guid>
		<description>We dont use it, but that little script shows how easy it is to modify WordPress.</description>
		<content:encoded><![CDATA[<p>We dont use it, but that little script shows how easy it is to modify WordPress.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Waidele</title>
		<link>http://wpengineer.com/spelling-wordpress-always-correctly/#comment-566</link>
		<dc:creator>Stefan Waidele</dc:creator>
		<pubDate>Fri, 30 Jan 2009 19:03:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=725#comment-566</guid>
		<description>Obviously, you do not use the snipplet in this article: &quot;...which forces WordPress into WordPress across all...&quot; ;)</description>
		<content:encoded><![CDATA[<p>Obviously, you do not use the snipplet in this article: "...which forces WordPress into WordPress across all..." <img src='http://wpengineer.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
