<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oremj's Blog &#187; Wordpress</title>
	<atom:link href="http://blog.mozilla.com/oremj/category/development/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mozilla.com/oremj</link>
	<description>Just another Blog.mozilla.com weblog</description>
	<lastBuildDate>Mon, 23 Nov 2009 20:14:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WordPressMU: changing domain names.</title>
		<link>http://blog.mozilla.com/oremj/2009/10/27/wordpressmu-changing-domain-names/</link>
		<comments>http://blog.mozilla.com/oremj/2009/10/27/wordpressmu-changing-domain-names/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 19:12:51 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/oremj/?p=45</guid>
		<description><![CDATA[Unfortunately, changing domain names in WordPressMU is a manual process. It&#8217;s something I&#8217;ve come across often and have to look it up each time. Here&#8217;s what I did, so I don&#8217;t have to look it up again. Original idea from Boris Masis. 1. Drop and run this script in the root wpmu directory: &#60;?php define('WP_INSTALLING', [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunately, changing domain names in WordPressMU is a manual process. It&#8217;s something I&#8217;ve come across often and have to look it up each time. Here&#8217;s what I did, so I don&#8217;t have to look it up again. Original idea from <a href="http://www.borism.net/2008/12/02/changing-domainsenvironments-in-wordpress-mu/" class="extlink">Boris Masis.</a></p>
<p>1. Drop and run this script in the root wpmu directory:</p>
<pre>&lt;?php
define('WP_INSTALLING', true);
require_once('wp-load.php');

$old_domain = 'olddomain.com';
$new_domain = 'newdomain.com';

$query = "UPDATE wp_site SET domain = '$new_domain' where domain = '$old_domain'";
$wpdb-&gt;query($query);

$query = "UPDATE wp_blogs SET domain = REPLACE(domain, '$old_domain', '$new_domain')";
$wpdb-&gt;query($query);

$querystr ="SHOW TABLES LIKE 'wp_%_options'";

$tables = $wpdb-&gt;get_results($querystr, ARRAY_N);

echo count($tables);
$query = "";
if ($tables){
  foreach ($tables as $table){
    $query = 'UPDATE '.$table[0]." SET option_value = REPLACE(option_value,'$old_domain','$new_domain')";
    $wpdb-&gt;query($query);
  }
}
?&gt;
</pre>
<p>2. Edit wp-config.php and set &#8220;DOMAIN_CURRENT_SITE&#8221; to the appropriate domain.</p>
<p>That&#8217;s it, everything should work properly.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/oremj/2009/10/27/wordpressmu-changing-domain-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimpleCaptcha Plugin</title>
		<link>http://blog.mozilla.com/oremj/2006/12/28/simplecaptcha-plugin/</link>
		<comments>http://blog.mozilla.com/oremj/2006/12/28/simplecaptcha-plugin/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 22:46:03 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/oremj/2006/12/28/simplecaptcha-plugin/</guid>
		<description><![CDATA[The other day spent several hours searching for a WordPress MU(WPMU) compatible captcha plugin with no success. I didn&#8217;t care about a robust spam fighting packages with Bayesian filtering etc; all I wanted was very simple and accessible plugin. Yesterday, I came up with SimpleCaptcha. So far SimpleCaptcha seems to be working very well against [...]]]></description>
			<content:encoded><![CDATA[<p>The other day spent several hours searching for a WordPress MU(WPMU) compatible captcha plugin with no success.  I didn&#8217;t care about a robust spam fighting packages with Bayesian filtering etc;  all I wanted was very simple and accessible plugin.  Yesterday, I came up with <a href="http://blog.mozilla.com/oremj/simplecaptcha-plugin/" title="SimpleCaptcha">SimpleCaptcha</a>.  So far SimpleCaptcha seems to be working very well against spam bots.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/oremj/2006/12/28/simplecaptcha-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

