diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-08 11:16:47 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-07-08 11:16:47 +0000 |
commit | bb260cb1234422a27c7e7d380f6c047d80bc49ed (patch) | |
tree | 3c39902763bb62be04b29122b343ab20a7b283ff /wp-app.php | |
parent | 6081c995737157ea06244568c48570148b08258f (diff) | |
download | wordpress-mu-bb260cb1234422a27c7e7d380f6c047d80bc49ed.tar.gz wordpress-mu-bb260cb1234422a27c7e7d380f6c047d80bc49ed.tar.xz wordpress-mu-bb260cb1234422a27c7e7d380f6c047d80bc49ed.zip |
WP merge to revision 8283
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1356 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-app.php')
-rw-r--r-- | wp-app.php | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -197,7 +197,7 @@ class AtomServer { // check to see if AtomPub is enabled if( !get_option( 'enable_app' ) ) - $this->not_allowed( sprintf( __( 'AtomPub services are disabled on this blog. An admin user can enable them at %s' ), admin_url('options-writing.php') ) ); + $this->forbidden( sprintf( __( 'AtomPub services are disabled on this blog. An admin user can enable them at %s' ), admin_url('options-writing.php') ) ); // dispatch foreach($this->selectors as $regex => $funcs) { @@ -939,6 +939,14 @@ list($content_type, $content) = prep_atom_text_construct(get_the_content()); ?> exit; } + function forbidden($reason='') { + log_app('Status','403: Forbidden'); + header('Content-Type: text/plain'); + status_header('403'); + echo $reason; + exit; + } + function not_found() { log_app('Status','404: Not Found'); header('Content-Type: text/plain'); |