Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

@@ 319-328 (lines=10) @@
316
	 * Post Subscriptions Toggle
317
	 *
318
	 */
319
	function subscription_post_subscribe_setting() {
320
321
		$stb_enabled = get_option( 'stb_enabled', 1 ); ?>
322
323
		<p class="description">
324
			<input type="checkbox" name="stb_enabled" id="jetpack-post-subscribe" value="1" <?php checked( $stb_enabled, 1 ); ?> />
325
			<?php _e( "Show a <em>'follow blog'</em> option in the comment form", 'jetpack' ); ?>
326
		</p>
327
	<?php
328
	}
329
330
	/**
331
	 * Comments Subscriptions Toggle
@@ 334-344 (lines=11) @@
331
	 * Comments Subscriptions Toggle
332
	 *
333
	 */
334
	function subscription_comment_subscribe_setting() {
335
336
		$stc_enabled = get_option( 'stc_enabled', 1 ); ?>
337
338
		<p class="description">
339
			<input type="checkbox" name="stc_enabled" id="jetpack-comment-subscribe" value="1" <?php checked( $stc_enabled, 1 ); ?> />
340
			<?php _e( "Show a <em>'follow comments'</em> option in the comment form", 'jetpack' ); ?>
341
		</p>
342
343
	<?php
344
	}
345
346
	function validate_settings( $settings ) {
347
		global $allowedposttags;