Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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