mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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);
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user