File file level phpdoc from jacobsantos. see #7037

git-svn-id: https://develop.svn.wordpress.org/trunk@7991 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-05-25 15:50:15 +00:00
parent be87986f7a
commit e25996c368
19 changed files with 365 additions and 32 deletions

View File

@@ -1,10 +1,18 @@
<?php
/**
* Handles Comment Post to WordPress and prevents duplicate comment posting.
*
* @package @WordPress
*/
if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
header('Allow: POST');
header('HTTP/1.1 405 Method Not Allowed');
header('Content-Type: text/plain');
exit;
}
/** Sets up the WordPress Environment. */
require( dirname(__FILE__) . '/wp-load.php' );
nocache_headers();
@@ -74,4 +82,4 @@ $location = apply_filters('comment_post_redirect', $location, $comment);
wp_redirect($location);
?>
?>