<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.2" -->
<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">
	<channel>
		<title>WPMU DEV Community &#187; Topic: Guide that explains how to convert a regular WP plugin to a WPMU plugin.</title>
		<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin</link>
		<description>WPMU DEV Community &#187; Topic: Guide that explains how to convert a regular WP plugin to a WPMU plugin.</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 08:33:03 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.2</generator>
		<atom:link href="http://premium.wpmudev.org/forums/rss/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin" rel="self" type="application/rss+xml" />

		<item>
			<title>drmike on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-20109</link>
			<pubDate>Tue, 17 Nov 2009 19:25:40 +0000</pubDate>
			<dc:creator>drmike</dc:creator>
			<guid isPermaLink="false">20109@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<p>Heck, I hardcode the prefix.  I'm lazy. :)</p>
<p>Plus it's one less function call.  And I know all of my installs use the prefix. (Except for one and they use wpmu_)
</p>]]></description>
		</item>
		<item>
			<title>Andrew on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-20080</link>
			<pubDate>Tue, 17 Nov 2009 17:00:32 +0000</pubDate>
			<dc:creator>Andrew</dc:creator>
			<guid isPermaLink="false">20080@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<p>I think what they did in that case was by accident. It looked like they had thr prefix hardcoded at one point and then decided to add the prefix variable. The problem is that they forgot to remove the hardcoded prefix.</p>
<p>Thanks,<br />
Andrew
</p>]]></description>
		</item>
		<item>
			<title>mikee17 on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-20043</link>
			<pubDate>Tue, 17 Nov 2009 08:38:51 +0000</pubDate>
			<dc:creator>mikee17</dc:creator>
			<guid isPermaLink="false">20043@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<p>As Aaron said: &#34;SQL should also not hardcode the wp_ prefix on table names.&#34;</p>
<p>I would like to add: Apart from using wp_prefix($wpdb-&#62;prefix), do NOT use wp_ in-between the tablename, eg: use $table_name = $wpdb-&#62;prefix . &#34;eCart_tbl&#34;; and NOT $table_name = $wpdb-&#62;prefix . &#34;wp_eCart_tbl&#34;;</p>
<p>Thanks &#38; Regards
</p>]]></description>
		</item>
		<item>
			<title>Aaron on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-18276</link>
			<pubDate>Fri, 30 Oct 2009 14:05:33 +0000</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">18276@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<p>Occasionally a plugin doesn't use the Wordpress $wpdb class for database actions. That's a no no and will break in Multidb and usually MU too.</p>
<p>SQL should also not hardcode the wp_ prefix on table names.
</p>]]></description>
		</item>
		<item>
			<title>mikee17 on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-18271</link>
			<pubDate>Fri, 30 Oct 2009 09:04:54 +0000</pubDate>
			<dc:creator>mikee17</dc:creator>
			<guid isPermaLink="false">18271@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<p>One more thought that just stuck....we must also need to consider multi-db functionalities(when its a db dependent one) when a plugin is made/modified or does the wp normal stuff handles it?</p>
<p>Thanks &#38; Regards
</p>]]></description>
		</item>
		<item>
			<title>mikee17 on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-18269</link>
			<pubDate>Fri, 30 Oct 2009 08:56:33 +0000</pubDate>
			<dc:creator>mikee17</dc:creator>
			<guid isPermaLink="false">18269@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<p>@Barry, Thanks! There are quite a few plugins that we tried...some were successful, other were NOT and still not. :) What you have mentioned are indeed 100% right.</p>
<p>@drmike, Thanks! Thought if there is some general check points, specific functions that we need to handle so on...I thought it would help all if we put them together here.</p>
<p> @Aaron, Thanks too. Thats a real point we should be aware of....some paid versions of plugins come encrypted too...cant even check if it does have any such security hole.</p>
<p>Yes, if more 'n more people put their thoughts here...we are likely to get more exposed to what all need to at-least kept in mind in such situations.</p>
<p>Thanks &#38; Regards
</p>]]></description>
		</item>
		<item>
			<title>Aaron on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-18188</link>
			<pubDate>Thu, 29 Oct 2009 15:01:29 +0000</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">18188@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<p>Also you need to be VERY aware about the security holes many normal WP plugins will open in your site. Almost none of them verify/filter user input. They can open your entire site to XSS and SQL injection vulnerabilities.</p>
<p>Filter input/filter output.
</p>]]></description>
		</item>
		<item>
			<title>drmike on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-18184</link>
			<pubDate>Thu, 29 Oct 2009 14:48:12 +0000</pubDate>
			<dc:creator>drmike</dc:creator>
			<guid isPermaLink="false">18184@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<blockquote><p>Hardcoding locations.</p></blockquote>
<p>Hardcoding the wrong locations....</p>
<p>Our method of testing is to install it on a testbed, give it a shot and see what happens and what errors are produced.  You have to remember that even though that there are guides on how to build a plugin, even a general one, few developers follow it word for word.  And then you have all the name changes of the functions over the versions, different functions that do the same thing, etc.  It really is a mess although to be honest, most open source platforms are.</p>
<p>A lot of the plugins have been discussed previously either here or on the regular mu forums.  If you;re having a specific problem with a specific plugin, may want to check to see if it;s been discussed previously.
</p>]]></description>
		</item>
		<item>
			<title>Barry on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-18175</link>
			<pubDate>Thu, 29 Oct 2009 13:44:09 +0000</pubDate>
			<dc:creator>Barry</dc:creator>
			<guid isPermaLink="false">18175@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<p>I haven't seen one, but it all depends on the plugin in question (is it your own or are you trying to fix one).</p>
<p>Some plugins have easy fixes, but a few (mentioning no names) are a nightmare and just need to be scrapped and re-written, or aren't worth the bother.</p>
<p>A few things to look out for:<br />
Hardcoding database prefix<br />
Creating tables (and forms based on them) but not passing or storing the blog_id / user_id for filtering<br />
Hardcoding locations.<br />
Relying of activation hooks to set up tables (mu-plugins don't fire this).
</p>]]></description>
		</item>
		<item>
			<title>mikee17 on "Guide that explains how to convert a regular WP plugin to a WPMU plugin."</title>
			<link>http://premium.wpmudev.org/forums/topic/guide-that-explains-how-to-convert-a-regular-wp-plugin-to-a-wpmu-plugin#post-18165</link>
			<pubDate>Thu, 29 Oct 2009 11:54:55 +0000</pubDate>
			<dc:creator>mikee17</dc:creator>
			<guid isPermaLink="false">18165@http://premium.wpmudev.org/forums/</guid>
			<description><![CDATA[<p>Hi,</p>
<p>Has anybody seen a good step by step guide that explains how to convert a regular WP plugin to a WPMU plugin?</p>
<p>I do understand it can vary from plugin to plugin as some create tables and some do not.<br />
And several other parameters that determine this....</p>
<p>Can we put all of them together here?</p>
<p>Thanks &#38; Regards
</p>]]></description>
		</item>

	</channel>
</rss>