Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

@@ 337-346 (lines=10) @@
334
	 * Post Subscriptions Toggle
335
	 *
336
	 */
337
	function subscription_post_subscribe_setting() {
338
339
		$stb_enabled = get_option( 'stb_enabled', 1 ); ?>
340
341
		<p class="description">
342
			<input type="checkbox" name="stb_enabled" id="jetpack-post-subscribe" value="1" <?php checked( $stb_enabled, 1 ); ?> />
343
			<?php _e( "Show a <em>'follow blog'</em> option in the comment form", 'jetpack' ); ?>
344
		</p>
345
	<?php
346
	}
347
348
	/**
349
	 * Comments Subscriptions Toggle
@@ 352-362 (lines=11) @@
349
	 * Comments Subscriptions Toggle
350
	 *
351
	 */
352
	function subscription_comment_subscribe_setting() {
353
354
		$stc_enabled = get_option( 'stc_enabled', 1 ); ?>
355
356
		<p class="description">
357
			<input type="checkbox" name="stc_enabled" id="jetpack-comment-subscribe" value="1" <?php checked( $stc_enabled, 1 ); ?> />
358
			<?php _e( "Show a <em>'follow comments'</em> option in the comment form", 'jetpack' ); ?>
359
		</p>
360
361
	<?php
362
	}
363
364
	function validate_settings( $settings ) {
365
		global $allowedposttags;