Make WordPress Core

Changeset 19612


Ignore:
Timestamp:
12/20/2011 09:39:46 PM (14 years ago)
Author:
nacin
Message:

Remove dead variables and strings from edit-form-comment. props ocean90, fixes #19481.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-comment.php

    r19176 r19612  
    1010if ( !defined('ABSPATH') )
    1111    die('-1');
    12 
    13 /**
    14  * @var string
    15  */
    16 $submitbutton_text = __('Edit Comment');
    17 $toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID);
    18 $form_action = 'editedcomment';
    19 $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);
    20 $comment->comment_author_email = esc_attr($comment->comment_author_email);
    2112?>
    22 
    2313<form name="post" action="comment.php" method="post" id="post">
    2414<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
     
    2818
    2919<div id="poststuff" class="metabox-holder has-right-sidebar">
    30 <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />
    31 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
     20<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID; ?>" />
     21<input type="hidden" name="action" value="editedcomment" />
     22<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>"' />
     23<input type="hidden" name="comment_post_ID" value="<?php esc_attr( $comment->comment_post_ID ); ?>" />
    3224
    3325<div id="side-info-column" class="inner-sidebar">
Note: See TracChangeset for help on using the changeset viewer.