Keep XML-RPC enabled under Maintenance


If you usually work with WordPress, you should know what a maintenance plugin is.

Well, under maintenance mode, each request will get the same answer: an under-maintenance landing page.

Of course, if you’re working with XML-RPC this could be annoying, so I implemented a trick for the dpMaintenance Lite plugin:

Edit wp-content/plugins/dpMaintentanceLite/dpMaintenanceLite.php rewriting the dpMaintenance_initial_run function at line 26 this way:

function dpMaintenance_initial_run () {
	global $dpMaintenance;
	if ($dpMaintenance['active']) {
		if ($_SERVER['REQUEST_URI'] == '/xmlrpc.php')
		// keep xmlrpc enabled

Leave a comment for other maintenance-plugins implementations.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s