Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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