WordPress.org

Make WordPress Core

Changeset 8202 for trunk/wp-app.php


Ignore:
Timestamp:
06/26/2008 10:39:57 PM (12 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r8031 r8202  
    195195            $this->redirect($this->get_service_url());
    196196        }
     197
     198        // check to see if AtomPub is enabled
     199        if( !get_option( 'enable_app' ) )
     200            $this->not_allowed( 'AtomPub services are disabled on this blog.  An admin user can enable them at ' . admin_url('options-writing.php') );
    197201
    198202        // dispatch
Note: See TracChangeset for help on using the changeset viewer.