<?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: The Obscure WordPress get_option Parameter</title>
	<atom:link href="http://www.itsananderson.com/2009/05/wordpress-tip-obscure-get_option-parameter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itsananderson.com/2009/05/wordpress-tip-obscure-get_option-parameter/</link>
	<description>WordPress, Programming, Life</description>
	<lastBuildDate>Fri, 13 Jan 2012 09:00:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Will</title>
		<link>http://www.itsananderson.com/2009/05/wordpress-tip-obscure-get_option-parameter/#comment-266</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Tue, 05 May 2009 03:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=596#comment-266</guid>
		<description>@Nick Good call! This makes the optional parameter even better :)</description>
		<content:encoded><![CDATA[<p>@Nick Good call! This makes the optional parameter even better <img src='http://www.itsananderson.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.itsananderson.com/2009/05/wordpress-tip-obscure-get_option-parameter/#comment-264</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 05 May 2009 01:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=596#comment-264</guid>
		<description>Very cool Will, I hate writing extra code for situations where the option isn&#039;t set yet.  I had no idea about this.</description>
		<content:encoded><![CDATA[<p>Very cool Will, I hate writing extra code for situations where the option isn&#8217;t set yet.  I had no idea about this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.itsananderson.com/2009/05/wordpress-tip-obscure-get_option-parameter/#comment-263</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 05 May 2009 01:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=596#comment-263</guid>
		<description>There&#039;s a bug in your first example :)  What if the value of your option is 0 or an empty string.

&lt;code&gt;$option = get_option( &#039;Option Name&#039; );
if( false === $option ) {
$option = &#039;My real option value.&#039;;
}&lt;/code&gt;

I do agree, though, that the improved get_option available with WP 2.7 makes things simpler.  No more checking for false.</description>
		<content:encoded><![CDATA[<p>There&#8217;s a bug in your first example <img src='http://www.itsananderson.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   What if the value of your option is 0 or an empty string.</p>
<p><code>$option = get_option( 'Option Name' );<br />
if( false === $option ) {<br />
$option = 'My real option value.';<br />
}</code></p>
<p>I do agree, though, that the improved get_option available with WP 2.7 makes things simpler.  No more checking for false.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

