Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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