WordPress.org

Make WordPress Core

Ticket #5120: classic-theme-comments-patch.diff

File classic-theme-comments-patch.diff, 1.2 KB (added by Elpie, 5 years ago)
  • comments-popup.php

     
    9292          <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 
    9393          <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" /> 
    9494          <input name="submit" type="submit" tabindex="5" value="<?php esc_attr_e("Say It!"); ?>" /> 
     95        <?php do_action('comment_form', $post->ID); ?> 
    9596        </p> 
    96         <?php do_action('comment_form', $post->ID); ?> 
    9797</form> 
    9898<?php } else { // comments are closed ?> 
    9999<p><?php _e("Sorry, the comment form is closed at this time."); ?></p> 
  • comments.php

     
    7070 
    7171<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" /> 
    7272<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 
    73 </p> 
    7473<?php do_action('comment_form', $post->ID); ?> 
    75  
     74</p> 
    7675</form> 
    7776 
    7877<?php endif; // If registration required and not logged in ?>