<?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 for Digging into WordPress</title>
	<atom:link href="http://digwp.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Sat, 11 May 2013 02:15:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Post Format Archives Widget by Derek Dorr</title>
		<link>http://digwp.com/2013/04/post-format-archives-widget/#comment-45965</link>
		<dc:creator>Derek Dorr</dc:creator>
		<pubDate>Sat, 11 May 2013 02:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=7044#comment-45965</guid>
		<description><![CDATA[I like the plugin. Not sure of an easier method of doing it, but an easier method of editing it for use in the future would be to use a for each loop with an array. It might also save on file size and processing time.

For example:

&lt;code&gt;function update($new_instance, $old_instance) {&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&lt;code&gt;$instance = $old_instance;&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&lt;code&gt;$array = array(&#039;title&#039;,&#039;aside&#039;,&#039;image&#039;,&#039;link&#039;,&#039;quote&#039;,&#039;status&#039;);&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&lt;code&gt;foreach ($array as $a) {&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;$instance[$a] = strip_tags($new_instance[$a]);&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&lt;code&gt;}&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&lt;code&gt;return $instance;&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>I like the plugin. Not sure of an easier method of doing it, but an easier method of editing it for use in the future would be to use a for each loop with an array. It might also save on file size and processing time.</p>
<p>For example:</p>
<p><code>function update($new_instance, $old_instance) {</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>$instance = $old_instance;</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>$array = array('title','aside','image','link','quote','status');</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>foreach ($array as $a) {</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>$instance[$a] = strip_tags($new_instance[$a]);</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>}</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>return $instance;</code><br />
<code>}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Post Format Archives Widget by Jeff Starr</title>
		<link>http://digwp.com/2013/04/post-format-archives-widget/#comment-45559</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Tue, 02 Apr 2013 06:59:13 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=7044#comment-45559</guid>
		<description><![CDATA[Another excellent tip, thank you Pascal. I&#039;m looking forward to updating the widget with these improvements. Will also update the post with the new code :)]]></description>
		<content:encoded><![CDATA[<p>Another excellent tip, thank you Pascal. I&#8217;m looking forward to updating the widget with these improvements. Will also update the post with the new code :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Post Format Archives Widget by Jeff Starr</title>
		<link>http://digwp.com/2013/04/post-format-archives-widget/#comment-45558</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Tue, 02 Apr 2013 06:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=7044#comment-45558</guid>
		<description><![CDATA[Ah that&#039;s excellent, thanks Thomas.

For those unfamiliar with the text-domains, this page in the Codex explains it well:

http://codex.wordpress.org/I18n_for_WordPress_Developers

Basically you need to add a parameter to any instances of &lt;code&gt;__(&#039;Some text&#039;);&lt;/code&gt; in order for the text to be translatable (not required).]]></description>
		<content:encoded><![CDATA[<p>Ah that&#8217;s excellent, thanks Thomas.</p>
<p>For those unfamiliar with the text-domains, this page in the Codex explains it well:</p>
<p><a href="http://codex.wordpress.org/I18n_for_WordPress_Developers" rel="nofollow">http://codex.wordpress.org/I18n_for_WordPress_Developers</a></p>
<p>Basically you need to add a parameter to any instances of <code>__('Some text');</code> in order for the text to be translatable (not required).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Post Format Archives Widget by Pascal</title>
		<link>http://digwp.com/2013/04/post-format-archives-widget/#comment-45556</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Tue, 02 Apr 2013 06:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=7044#comment-45556</guid>
		<description><![CDATA[&lt;code&gt;get_theme_support( &#039;post-formats&#039; );&lt;/code&gt; gives you an array of all post formats supported by the current theme. Just loop through it and save a couple of lines.]]></description>
		<content:encoded><![CDATA[<p><code>get_theme_support( 'post-formats' );</code> gives you an array of all post formats supported by the current theme. Just loop through it and save a couple of lines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Post Format Archives Widget by Thomas Scholz</title>
		<link>http://digwp.com/2013/04/post-format-archives-widget/#comment-45555</link>
		<dc:creator>Thomas Scholz</dc:creator>
		<pubDate>Tue, 02 Apr 2013 05:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=7044#comment-45555</guid>
		<description><![CDATA[Your widget update function could be so much simpler:

&lt;code&gt;function update($new_instance, $old_instance) {&lt;/code&gt;
    &lt;code&gt;return array_map( &#039;strip_tags&#039;, $new_instance );&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;

Also &lt;code&gt;__(&#039;View Aside posts&#039;)&lt;/code&gt; and other calls to &lt;code&gt;__()&lt;/code&gt; without a text domain will not work.]]></description>
		<content:encoded><![CDATA[<p>Your widget update function could be so much simpler:</p>
<p><code>function update($new_instance, $old_instance) {</code><br />
    <code>return array_map( 'strip_tags', $new_instance );</code><br />
<code>}</code></p>
<p>Also <code>__('View Aside posts')</code> and other calls to <code>__()</code> without a text domain will not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Post Format Archives Widget by Jeff Starr</title>
		<link>http://digwp.com/2013/04/post-format-archives-widget/#comment-45552</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Tue, 02 Apr 2013 03:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=7044#comment-45552</guid>
		<description><![CDATA[Awesome, thanks for sharing Edward!]]></description>
		<content:encoded><![CDATA[<p>Awesome, thanks for sharing Edward!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Post Format Archives Widget by Jeff Starr</title>
		<link>http://digwp.com/2013/04/post-format-archives-widget/#comment-45551</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Tue, 02 Apr 2013 03:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=7044#comment-45551</guid>
		<description><![CDATA[Yeh, it looks like WP mangled the code.. I tried to salvage but you may want to repost use pre or code tags. Thanks Chip.]]></description>
		<content:encoded><![CDATA[<p>Yeh, it looks like WP mangled the code.. I tried to salvage but you may want to repost use pre or code tags. Thanks Chip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Post Format Archives Widget by Chip Bennett</title>
		<link>http://digwp.com/2013/04/post-format-archives-widget/#comment-45546</link>
		<dc:creator>Chip Bennett</dc:creator>
		<pubDate>Tue, 02 Apr 2013 00:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=7044#comment-45546</guid>
		<description><![CDATA[PRE-tag usage fail. Just pretend that was code-formatted...]]></description>
		<content:encoded><![CDATA[<p>PRE-tag usage fail. Just pretend that was code-formatted&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
