Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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