Code Duplication    Length = 7-7 lines in 2 locations

includes/forms/functions.php 2 locations

@@ 120-126 (lines=7) @@
117
 *
118
 * @return bool True if on the Success page, false otherwise.
119
 */
120
function give_is_success_page() {
121
	$give_options = give_get_settings();
122
123
	$success_page = isset( $give_options['success_page'] ) ? is_page( $give_options['success_page'] ) : false;
124
125
	return apply_filters( 'give_is_success_page', $success_page );
126
}
127
128
/**
129
 * Send To Success Page
@@ 362-368 (lines=7) @@
359
 *
360
 * @return bool True if on the History page, false otherwise.
361
 */
362
function give_is_history_page() {
363
	$give_options = give_get_settings();
364
365
	$history_page = isset( $give_options['history_page'] ) ? absint( $give_options['history_page'] ) : 0;
366
367
	return apply_filters( 'give_is_history_page', is_page( $history_page ) );
368
}
369
370
/**
371
 * Check if a field is required