Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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