Changeset 42343 for trunk/src/wp-comments-post.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-comments-post.php
r42201 r42343 12 12 } 13 13 14 header( 'Allow: POST');15 header( "$protocol 405 Method Not Allowed");16 header( 'Content-Type: text/plain');14 header( 'Allow: POST' ); 15 header( "$protocol 405 Method Not Allowed" ); 16 header( 'Content-Type: text/plain' ); 17 17 exit; 18 18 } 19 19 20 20 /** Sets up the WordPress Environment. */ 21 require( dirname( __FILE__) . '/wp-load.php' );21 require( dirname( __FILE__ ) . '/wp-load.php' ); 22 22 23 23 nocache_headers(); … … 27 27 $data = intval( $comment->get_error_data() ); 28 28 if ( ! empty( $data ) ) { 29 wp_die( '<p>' . $comment->get_error_message() . '</p>', __( 'Comment Submission Failure' ), array( 'response' => $data, 'back_link' => true ) ); 29 wp_die( 30 '<p>' . $comment->get_error_message() . '</p>', __( 'Comment Submission Failure' ), array( 31 'response' => $data, 32 'back_link' => true, 33 ) 34 ); 30 35 } else { 31 36 exit;
Note: See TracChangeset
for help on using the changeset viewer.