WordPress.org

Make WordPress Core

Ticket #7157: wp-app.php.diff

File wp-app.php.diff, 699 bytes (added by josephscott, 12 years ago)
  • wp-app.php

     
    195195                        $this->redirect($this->get_service_url());
    196196                }
    197197
     198                // check to see if AtomPub is enabled
     199                if( !get_option( 'enable_app' ) )
     200                        $this->not_allowed( 'AtomPub services are disbaled on this blog.  An admin user can enable them at ' . get_bloginfo( 'wpurl' ) . '/wp-admin/options-writing.php' );
     201
    198202                // dispatch
    199203                foreach($this->selectors as $regex => $funcs) {
    200204                        if(preg_match($regex, $path, $matches)) {
     
    11871191$server = new AtomServer();
    11881192$server->handle_request();
    11891193
    1190 ?>
    1191  No newline at end of file
     1194?>