Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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