comment_ID ); ?>

comment_post_ID > 0 ) : $comment_link = get_comment_link( $comment ); ?>

'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings, ) ); wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>

comment_approved ) { case '1': _e( 'Approved' ); break; case '0': _e( 'Pending' ); break; case 'spam': _e( 'Spam' ); break; } ?>


comment_date ) ), /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) ) ); ?> ' . $submitted . '' ); ?>
comment_post_ID; if ( current_user_can( 'edit_post', $post_id ) ) { $post_link = ""; $post_link .= esc_html( get_the_title( $post_id ) ) . ''; } else { $post_link = esc_html( get_the_title( $post_id ) ); } ?>
' . $post_link . '' ); ?>
comment_parent ) { $parent = get_comment( $comment->comment_parent ); if ( $parent ) { $parent_display = sprintf( '%s', esc_url( get_comment_link( $parent ) ), esc_html( get_comment_author( $parent ) ) ); } } // The parent can only be changed when threaded comments are enabled. $comment_threading_enabled = get_option( 'thread_comments' ); if ( $comment_threading_enabled ) { $max_thread_depth = (int) get_option( 'thread_comments_depth' ); // Pending comments may be nested under pending parents, but approved comments require publicly visible parents. $parent_statuses = '1' === $comment->comment_approved ? 'approve' : array( 'approve', 'hold' ); // Limit the number of comments to keep memory usage and the size of the dropdown reasonable on busy posts. $post_comments = get_comments( array( 'post_id' => $comment->comment_post_ID, 'type' => 'comment', 'status' => $parent_statuses, 'orderby' => 'comment_date_gmt', 'order' => 'DESC', 'number' => 100, ) ); // Restore chronological order for display. $post_comments = array_reverse( $post_comments ); // Index the comments by ID and by parent, to compute depths and find descendants. $post_comments_by_id = array(); $comments_by_parent = array(); foreach ( $post_comments as $post_comment ) { $post_comments_by_id[ (int) $post_comment->comment_ID ] = $post_comment; $comments_by_parent[ (int) $post_comment->comment_parent ][] = (int) $post_comment->comment_ID; } // Walk the descendants level by level, which also gives the height of the subtree that moves with the comment. $comment_descendants = array(); $comment_subtree_height = 1; $comment_level = array( (int) $comment->comment_ID ); while ( $comment_level ) { $next_level = array(); foreach ( $comment_level as $level_comment_id ) { if ( isset( $comments_by_parent[ $level_comment_id ] ) ) { foreach ( $comments_by_parent[ $level_comment_id ] as $descendant_id ) { $comment_descendants[ $descendant_id ] = true; $next_level[] = $descendant_id; } } } if ( $next_level ) { ++$comment_subtree_height; } $comment_level = $next_level; } // Compute each comment's depth, since comments at the maximum threading depth cannot become a parent. $comment_depths = array(); foreach ( $post_comments as $post_comment ) { $depth = 1; $ancestor_id = (int) $post_comment->comment_parent; while ( $ancestor_id && isset( $post_comments_by_id[ $ancestor_id ] ) ) { ++$depth; $ancestor_id = (int) $post_comments_by_id[ $ancestor_id ]->comment_parent; } $comment_depths[ (int) $post_comment->comment_ID ] = $depth; } } ?>
' . $parent_display . '' ); ?>

comment_ID&_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete Permanently' ) : __( 'Move to Trash' ) ) . "\n"; ?>