More informative error message when remote publishing is disabled. Don't disable if upgrading. Props josephscott. see #7157

git-svn-id: https://develop.svn.wordpress.org/trunk@8202 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-06-26 22:39:57 +00:00
parent db1134b9f1
commit 9cf90ec524
6 changed files with 32 additions and 36 deletions
+5 -1
View File
@@ -195,6 +195,10 @@ class AtomServer {
$this->redirect($this->get_service_url());
}
// check to see if AtomPub is enabled
if( !get_option( 'enable_app' ) )
$this->not_allowed( 'AtomPub services are disabled on this blog. An admin user can enable them at ' . admin_url('options-writing.php') );
// dispatch
foreach($this->selectors as $regex => $funcs) {
if(preg_match($regex, $path, $matches)) {
@@ -1187,4 +1191,4 @@ EOD;
$server = new AtomServer();
$server->handle_request();
?>
?>