Code Duplication    Length = 10-11 lines in 2 locations

modules/subscriptions.php 2 locations

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