Index: sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
===================================================================
--- sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php	(revision 4905)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php	(working copy)
@@ -32,6 +32,10 @@
 
 		// Limit no-replies view to certain number of days.
 		add_filter( 'bbp_register_view_no_replies', array( $this, 'limit_no_replies_view' ) );
+
+		// Process extra reply fields submission.
+		add_action( 'bbp_new_reply', array( $this, 'handle_extra_reply_actions' ), 10, 2 );
+		add_action( 'bbp_edit_reply', array( $this, 'handle_extra_reply_actions' ), 10, 2 );
 	}
 
 	/**
@@ -173,4 +177,36 @@
 		return $args;
 	}
 
+	/**
+	 * Handle "Reply and mark as resolved" and "Reply and close the topic" checkboxes.
+	 *
+	 * @param int $reply_id Reply ID.
+	 * @param int $topic_id Topic ID.
+	 */
+	public function handle_extra_reply_actions( $reply_id, $topic_id ) {
+		// Handle "Reply and mark as resolved" checkbox
+		if ( ! empty( $_POST['bbp_reply_mark_resolved'] ) && ( 'yes' === $_POST['bbp_reply_mark_resolved'] ) ) {
+			if ( class_exists( 'WordPressdotorg\Forums\Topic_Resolution\Plugin' ) ) {
+				$topic_resolution_plugin = Topic_Resolution\Plugin::get_instance();
+
+				$plugin_enabled   = $topic_resolution_plugin->is_enabled_on_forum( bbp_get_topic_forum_id( $topic_id ) );
+				$user_can_resolve = $topic_resolution_plugin->user_can_resolve( get_current_user_id(), $topic_id );
+
+				if ( $plugin_enabled && $user_can_resolve ) {
+					$topic_resolution_plugin->set_topic_resolution( array(
+						'id'         => $topic_id,
+						'resolution' => 'yes',
+					) );
+				}
+			}
+		}
+
+		// Handle "Reply and close the topic" checkbox
+		if ( ! empty( $_POST['bbp_reply_close_topic'] ) && ( 'yes' === $_POST['bbp_reply_close_topic'] ) ) {
+			if ( current_user_can( 'moderate', $topic_id ) && bbp_is_topic_open( $topic_id ) ) {
+				bbp_close_topic( $topic_id );
+			}
+		}
+	}
+
 }
Index: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php
===================================================================
--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php	(revision 4905)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php	(working copy)
@@ -152,6 +152,28 @@
 
 					<?php endif; ?>
 
+					<?php if ( class_exists( 'WordPressdotorg\Forums\Topic_Resolution\Plugin' ) ) : ?>
+
+						<?php if ( WordPressdotorg\Forums\Topic_Resolution\Plugin::get_instance()->user_can_resolve( get_current_user_id(), bbp_get_topic_id() ) ) : ?>
+
+							<p>
+								<input name="bbp_reply_mark_resolved" id="bbp_reply_mark_resolved" type="checkbox" value="yes" />
+								<label for="bbp_reply_mark_resolved"><?php esc_html_e( 'Reply and mark as resolved', 'wporg-forums' ); ?></label>
+							</p>
+
+						<?php endif; ?>
+
+					<?php endif; ?>
+
+					<?php if ( current_user_can( 'moderate', bbp_get_topic_id() ) ) : ?>
+
+						<p>
+							<input name="bbp_reply_close_topic" id="bbp_reply_close_topic" type="checkbox" value="yes" />
+							<label for="bbp_reply_close_topic"><?php esc_html_e( 'Reply and close the topic', 'wporg-forums' ); ?></label>
+						</p>
+
+					<?php endif; ?>
+
 					<?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?>
 
 					<div class="bbp-submit-wrapper">
