Skip to content

Commit

Permalink
Remove dead variables and strings from edit-form-comment. props ocean…
Browse files Browse the repository at this point in the history
…90, fixes #19481.

git-svn-id: http://core.svn.wordpress.org/trunk@19612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Dec 20, 2011
1 parent 45ffbed commit 75881c1
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions wp-admin/edit-form-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,18 @@
// don't load directly
if ( !defined('ABSPATH') )
die('-1');

/**
* @var string
*/
$submitbutton_text = __('Edit Comment');
$toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID);
$form_action = 'editedcomment';
$form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . esc_attr($comment->comment_ID) . "' />\n<input type='hidden' name='comment_post_ID' value='" . esc_attr($comment->comment_post_ID);
$comment->comment_author_email = esc_attr($comment->comment_author_email);
?>

<form name="post" action="comment.php" method="post" id="post">
<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php _e('Edit Comment'); ?></h2>

<div id="poststuff" class="metabox-holder has-right-sidebar">
<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />
<input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
<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 esc_attr( $comment->comment_post_ID ); ?>" />

<div id="side-info-column" class="inner-sidebar">
<div id="submitdiv" class="stuffbox" >
Expand Down

0 comments on commit 75881c1

Please sign in to comment.