Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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