<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Theme/Plugin Dependencies</title>
	<atom:link href="http://ottopress.com/2012/themeplugin-dependencies/feed/" rel="self" type="application/rss+xml" />
	<link>http://ottopress.com/2012/themeplugin-dependencies/</link>
	<description>You have to use an Ottopress to get fresh squeezed Otto.</description>
	<lastBuildDate>Wed, 22 May 2013 16:53:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6-beta3-24284</generator>
	<item>
		<title>By: Core plugin dependency is necessary for a better WordPress ecosystem : Post Status</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-11822</link>
		<dc:creator>Core plugin dependency is necessary for a better WordPress ecosystem : Post Status</dc:creator>
		<pubDate>Thu, 09 May 2013 15:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-11822</guid>
		<description><![CDATA[[...] Wood has written a post on how to achieve dependency in plugins, and Thomas Griffin has a very full featured class to do so. But these tools are still [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Wood has written a post on how to achieve dependency in plugins, and Thomas Griffin has a very full featured class to do so. But these tools are still [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Plugin Licenses, Upsells, and Add-ons &#124; Half-Elf on Tech</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-11041</link>
		<dc:creator>Plugin Licenses, Upsells, and Add-ons &#124; Half-Elf on Tech</dc:creator>
		<pubDate>Fri, 06 Jul 2012 17:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-11041</guid>
		<description><![CDATA[[...] deactivate the child and so on and so forth. I&#8217;m not going to write it all for you (though Otto wrote a lot about it for themes)Now going back in your parent plugin, you can run the same check: if [...]]]></description>
		<content:encoded><![CDATA[<p>[...] deactivate the child and so on and so forth. I&#8217;m not going to write it all for you (though Otto wrote a lot about it for themes)Now going back in your parent plugin, you can run the same check: if [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-10972</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Mon, 18 Jun 2012 19:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-10972</guid>
		<description><![CDATA[Funny you should say that ;)

I just got done adding an &quot;include plugin.php&quot; to the constructor so it would work on the frontend and realized that the links would do a non-admin absolutely no good. Thanks for the speedy reply.]]></description>
		<content:encoded><![CDATA[<p>Funny you should say that <img src='http://ottopress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I just got done adding an &#8220;include plugin.php&#8221; to the constructor so it would work on the frontend and realized that the links would do a non-admin absolutely no good. Thanks for the speedy reply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Otto</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-10971</link>
		<dc:creator>Otto</dc:creator>
		<pubDate>Mon, 18 Jun 2012 19:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-10971</guid>
		<description><![CDATA[Most of the admin stuff isn&#039;t loaded on front-end hooks, and really, you shouldn&#039;t need this sort of dependency checking on the front-end anyway. Use function_exists and similar to check to see if the plugin you need to call is there or not.]]></description>
		<content:encoded><![CDATA[<p>Most of the admin stuff isn&#8217;t loaded on front-end hooks, and really, you shouldn&#8217;t need this sort of dependency checking on the front-end anyway. Use function_exists and similar to check to see if the plugin you need to call is there or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-10970</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Mon, 18 Jun 2012 19:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-10970</guid>
		<description><![CDATA[Ditto. But...

It works fine from an admin hook but I also get the &#039;Call to undefined function get_plugins()&#039; when attaching it to a frontend hook (wp_head, after_theme_setup, etc.).]]></description>
		<content:encoded><![CDATA[<p>Ditto. But&#8230;</p>
<p>It works fine from an admin hook but I also get the &#8216;Call to undefined function get_plugins()&#8217; when attaching it to a frontend hook (wp_head, after_theme_setup, etc.).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Why WordPress Themes Should Not Have SEO Options and Why They Do?</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-10850</link>
		<dc:creator>Why WordPress Themes Should Not Have SEO Options and Why They Do?</dc:creator>
		<pubDate>Tue, 22 May 2012 17:25:04 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-10850</guid>
		<description><![CDATA[[...] Update: As brought up in the comment, it would be much better if theme authors simply use Theme/Plugin dependencies. Here is a great article by Otto talking about Theme/Plugin Dependencies. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Update: As brought up in the comment, it would be much better if theme authors simply use Theme/Plugin dependencies. Here is a great article by Otto talking about Theme/Plugin Dependencies. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chrismccoy</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-10565</link>
		<dc:creator>chrismccoy</dc:creator>
		<pubDate>Thu, 23 Feb 2012 13:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-10565</guid>
		<description><![CDATA[im getting Call to undefined function get_plugins() when trying this code, not sure why]]></description>
		<content:encoded><![CDATA[<p>im getting Call to undefined function get_plugins() when trying this code, not sure why</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-10535</link>
		<dc:creator>shawn</dc:creator>
		<pubDate>Sat, 11 Feb 2012 21:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-10535</guid>
		<description><![CDATA[Yes there is an error thanks for pointing that out, Translation is something i hate but I recognize it&#039;s importance so I will pay more attention to how it works... Good thing I did not have that piece of code duplicated 5+ times would have been hell to fix :) :)]]></description>
		<content:encoded><![CDATA[<p>Yes there is an error thanks for pointing that out, Translation is something i hate but I recognize it&#8217;s importance so I will pay more attention to how it works&#8230; Good thing I did not have that piece of code duplicated 5+ times would have been hell to fix <img src='http://ottopress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <img src='http://ottopress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Otto</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-10534</link>
		<dc:creator>Otto</dc:creator>
		<pubDate>Sat, 11 Feb 2012 21:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-10534</guid>
		<description><![CDATA[I&#039;m not talking about the function... I&#039;m talking about the function *call*.

This:

[php]
register_sidebar( array(
       &#039;name&#039; =&gt; __( &#039;Main Sidebar&#039;, &#039;twentyeleven&#039; ),
       &#039;id&#039; =&gt; &#039;sidebar-1&#039;,
       &#039;before_widget&#039; =&gt; &#039;&lt;aside id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,
       &#039;after_widget&#039; =&gt; &quot;&lt;/aside&gt;&quot;,
       &#039;before_title&#039; =&gt; &#039;&lt;h3 class=&quot;widget-title&quot;&gt;&#039;,
       &#039;after_title&#039; =&gt; &#039;&lt;/h3&gt;&#039;,
) );
[/php]

is clearer and easier to understand than this equivalent:

[php]
cwp::register_sidebar(&#039;Main Sidebar&#039;, &#039;sidebar-1&#039;);
[/php]

If I have to go look at the function to see what the parameters correspond to, then it&#039;s already not self-documenting. 

Furthermore, your code for the class-based static register_sidebar function has an error in it. I18N based translation will not work with that function because the string won&#039;t get marked for translation in the PO/POT files, and variable based text-domains are incorrect. So the strings you used in your theme are now untranslatable. See &lt;a href=&quot;http://markjaquith.wordpress.com/2011/10/06/translating-wordpress-plugins-and-themes-dont-get-clever/&quot; rel=&quot;nofollow&quot;&gt;Mark&#039;s post&lt;/a&gt; on the topic for more info on text-domains.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m not talking about the function&#8230; I&#8217;m talking about the function *call*.</p>
<p>This:</p>
<pre class="brush: php; title: ; notranslate">
register_sidebar( array(
       'name' =&gt; __( 'Main Sidebar', 'twentyeleven' ),
       'id' =&gt; 'sidebar-1',
       'before_widget' =&gt; '&lt;aside id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;',
       'after_widget' =&gt; &quot;&lt;/aside&gt;&quot;,
       'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
       'after_title' =&gt; '&lt;/h3&gt;',
) );
</pre>
<p>is clearer and easier to understand than this equivalent:</p>
<pre class="brush: php; title: ; notranslate">
cwp::register_sidebar('Main Sidebar', 'sidebar-1');
</pre>
<p>If I have to go look at the function to see what the parameters correspond to, then it&#8217;s already not self-documenting. </p>
<p>Furthermore, your code for the class-based static register_sidebar function has an error in it. I18N based translation will not work with that function because the string won&#8217;t get marked for translation in the PO/POT files, and variable based text-domains are incorrect. So the strings you used in your theme are now untranslatable. See <a href="http://markjaquith.wordpress.com/2011/10/06/translating-wordpress-plugins-and-themes-dont-get-clever/" rel="nofollow">Mark&#8217;s post</a> on the topic for more info on text-domains.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn</title>
		<link>http://ottopress.com/2012/themeplugin-dependencies/comment-page-1/#comment-10533</link>
		<dc:creator>shawn</dc:creator>
		<pubDate>Sat, 11 Feb 2012 21:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=763#comment-10533</guid>
		<description><![CDATA[Anyways sorry to hijack the post, I do agree with mot of what you say though]]></description>
		<content:encoded><![CDATA[<p>Anyways sorry to hijack the post, I do agree with mot of what you say though</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Object Caching 433/479 objects using xcache

 Served from: ottodestruct.com @ 2013-05-24 21:12:44 by W3 Total Cache -->