Remove hidden `user_id` input from Edit Comment screen.
Since [31172], it caused the comment's `user_id` field to be unexpectedly changed to the user who edits the comment. fixes #30307. git-svn-id: https://develop.svn.wordpress.org/trunk@31776 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a6b11c0411
commit
546f3c348b
|
@ -16,7 +16,6 @@ if ( !defined('ABSPATH') )
|
|||
<h2><?php _e('Edit Comment'); ?></h2>
|
||||
|
||||
<div id="poststuff">
|
||||
<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID; ?>" />
|
||||
<input type="hidden" name="action" value="editedcomment" />
|
||||
<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
|
||||
<input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" />
|
||||
|
|
Loading…
Reference in New Issue