Code Duplication    Length = 3-5 lines in 2 locations

includes/shortcodes.php 1 location

@@ 90-94 (lines=5) @@
87
		// Is Email-based access enabled?
88
		give_get_template_part( 'email', 'login-form' );
89
90
	} else {
91
92
		echo apply_filters( 'give_donation_history_nonuser_message', Give()->notices->print_frontend_notice( __( 'You must be logged in to view your donation history. Please login using your account or create an account using the same email you used to donate with.', 'give' ), false ) );
93
		echo do_shortcode( '[give_login]' );
94
	}
95
96
	/**
97
	 * Filter to modify donation history HTMl

templates/shortcode-login.php 1 location

@@ 62-64 (lines=3) @@
59
	</form>
60
<?php } elseif( isset( $_GET['give-login-success'] ) && true === (bool) $_GET['give-login-success'] ) { ?>
61
	<?php Give()->notices->print_frontend_notice( apply_filters('give_successful_login_message', __( 'Login successful. Welcome!', 'give' )), true, 'success' ); ?>
62
<?php } else { ?>
63
	<?php Give()->notices->print_frontend_notice( apply_filters('give_already_logged_in_message', sprintf( __( 'You are already logged in to the site. <a href="%s">Click here</a> to logout.', 'give' ), esc_url( $give_logout_redirect ) ) ), true, 'warning' ); ?>
64
<?php } ?>