<?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: WordPress Plugin-Path</title>
	<atom:link href="http://wpengineer.com/wordpress-plugin-path/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/wordpress-plugin-path/</link>
	<description>WordPress News, Hacks, Tipps, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Thu, 11 Mar 2010 18:52:02 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/wordpress-plugin-path/#comment-1069</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 28 Apr 2009 18:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1134#comment-1069</guid>
		<description>scribu, we have also a life outside WPEngineer ;)</description>
		<content:encoded><![CDATA[<p>scribu, we have also a life outside WPEngineer <img src='http://wpengineer.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scribu</title>
		<link>http://wpengineer.com/wordpress-plugin-path/#comment-1065</link>
		<dc:creator>scribu</dc:creator>
		<pubDate>Mon, 27 Apr 2009 18:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1134#comment-1065</guid>
		<description>PS: It would be nice if commenters got a message when their comment is held for moderation.

Keep up the good work.</description>
		<content:encoded><![CDATA[<p>PS: It would be nice if commenters got a message when their comment is held for moderation.</p>
<p>Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scribu</title>
		<link>http://wpengineer.com/wordpress-plugin-path/#comment-1064</link>
		<dc:creator>scribu</dc:creator>
		<pubDate>Mon, 27 Apr 2009 18:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1134#comment-1064</guid>
		<description>Yes, but that&#039;s exactly when the plugins_url() function got implemented, so that case is covered.</description>
		<content:encoded><![CDATA[<p>Yes, but that's exactly when the plugins_url() function got implemented, so that case is covered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://wpengineer.com/wordpress-plugin-path/#comment-1063</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 27 Apr 2009 18:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1134#comment-1063</guid>
		<description>@scribu: i think it is better you use your function with constants, with WordPress 2.5 it is possible to change the wp-content-folder in a new name or place, see a other post from me: &lt;a href=&quot;http://wpengineer.com/determine-path-to-plugin-and-content-directories/&quot; rel=&quot;nofollow&quot;&gt;Determine Path To Plugin and Content Directories&lt;/a&gt;
Thanks for your comment and best wishes.</description>
		<content:encoded><![CDATA[<p>@scribu: i think it is better you use your function with constants, with WordPress 2.5 it is possible to change the wp-content-folder in a new name or place, see a other post from me: <a href="http://wpengineer.com/determine-path-to-plugin-and-content-directories/" rel="nofollow" class="liinternal">Determine Path To Plugin and Content Directories</a><br />
Thanks for your comment and best wishes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scribu</title>
		<link>http://wpengineer.com/wordpress-plugin-path/#comment-1061</link>
		<dc:creator>scribu</dc:creator>
		<pubDate>Mon, 27 Apr 2009 17:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1134#comment-1061</guid>
		<description>This is the function I use in several of my plugins:

&lt;pre&gt;
function get_plugin_url() {
		// WP &lt; 2.6
		if ( !function_exists(&#039;plugins_url&#039;) )
			return get_option(&#039;siteurl&#039;) . &#039;/wp-content/plugins/&#039; . plugin_basename(dirname(__FILE__));

		return plugins_url(plugin_basename(dirname(__FILE__)));
	}
&lt;/pre&gt;

The advantage is that it works with all versions of WordPress from 2.3 to 2.8 and you don&#039;t have to hardcode the plugin directory.</description>
		<content:encoded><![CDATA[<p>This is the function I use in several of my plugins:</p>
<pre>
function get_plugin_url() {
		// WP &lt; 2.6
		if ( !function_exists('plugins_url') )
			return get_option('siteurl') . '/wp-content/plugins/' . plugin_basename(dirname(__FILE__));

		return plugins_url(plugin_basename(dirname(__FILE__)));
	}
</pre>
<p>The advantage is that it works with all versions of WordPress from 2.3 to 2.8 and you don't have to hardcode the plugin directory.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
