Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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