Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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