Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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