<?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>WP Engineer &#187; snippet</title>
	<atom:link href="http://wpengineer.com/tag/snippet/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Mon, 21 May 2012 22:48:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Spelling WordPress Always Correctly</title>
		<link>http://wpengineer.com/725/spelling-wordpress-always-correctly/</link>
		<comments>http://wpengineer.com/725/spelling-wordpress-always-correctly/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 18:50:37 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=725</guid>
		<description><![CDATA[Sometimes it happens that you have misspelled WordPress in your article because you were in a rush. Since WordPress is a registered trademark, it should be natural to write WordPress the correct way. As Lorelle mentioned on her blog, Matt wrote a script, which forces WordPress into WordPress across all of the 5 million plus [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it happens that you have misspelled <strong>WordPress</strong> in your article because you were in a rush. Since WordPress is a registered trademark, it should be natural to write <strong>WordPress</strong> the correct way. As <a title="Lorelle on WordPress" href="http://lorelle.wordpress.com">Lorelle</a> <a title="WordPress is spelled WordPress" href="http://lorelle.wordpress.com/2009/01/29/wordpress-news-logogate-wordpresstv-wordpressmu-buddypress-and-more/">mentioned on her blog, Matt wrote a script</a>, which forces WordPress into WordPress across all of the 5 million plus blogs on WordPress.com.<br />
<span id="more-725"></span><br />
The following code snippet, which has to be insert in function.php, replaces wordpress, WordPress,wOrDPrESS and other spellings of WordPress:<br />
<strong>Note</strong>: that function is <strong>PHP 5</strong> only.</p>
<pre lang="php">
&lt;?php
function writeWordPressCorrect($content) {
	$content = str_ireplace(&quot;wordpress&quot;,&quot;WordPress&quot;, $content);
	return $content;
}
add_filter(&#039;the_title&#039;, &#039;writeWordPressCorrect&#039;,1);
add_filter(&#039;the_content&#039;, &#039;writeWordPressCorrect&#039;,1);
?&gt;
</pre>
<p>No more misspelling of WordPress. <img src='http://wpengineer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/725/spelling-wordpress-always-correctly/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

