- $parent_link = esc_url( get_comment_link( $comment->comment_parent ) );
- $name = get_comment_author( $parent->comment_ID );
+ if ( $parent ) :
+ $parent_link = esc_url( get_comment_link( $parent ) );
+ $name = get_comment_author( $parent );
+ ?>
+ <div class="misc-pub-section misc-pub-reply-to">
+ <?php printf(
+ /* translators: %s: comment link */
+ __( 'In reply to: %s' ),
+ '<b><a href="' . $parent_link . '">' . $name . '</a></b>'
+ ); ?>
+ </div>
+<?php endif;
+endif; ?>
+
+<?php
+ /**
+ * Filter miscellaneous actions for the edit comment form sidebar.
+ *
+ * @since 4.3.0
+ *
+ * @param string $html Output HTML to display miscellaneous action.
+ * @param object $comment Current comment object.
+ */
+ echo apply_filters( 'edit_comment_misc_actions', '', $comment );