mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
+5
-1
@@ -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();
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user