Ticket #51439: 51439-edit-form-comment.php.patch
File 51439-edit-form-comment.php.patch, 739 bytes (added by , 4 years ago) |
---|
-
src/wp-admin/edit-form-comment.php
4 4 * 5 5 * @package WordPress 6 6 * @subpackage Administration 7 * 8 * @global string $action 7 9 */ 8 10 11 global $action; 12 9 13 // Don't load directly. 10 14 if ( ! defined( 'ABSPATH' ) ) { 11 15 die( '-1' ); 12 16 } 17 18 if ( isset( $_REQUEST['c'] ) ) { 19 $comment_id = absint( $_REQUEST['c'] ); 20 $comment = get_comment( $comment_id ); 21 } else { 22 $comment = null; 23 } 24 13 25 ?> 14 26 <form name="post" action="comment.php" method="post" id="post"> 15 27 <?php wp_nonce_field( 'update-comment_' . $comment->comment_ID ); ?>