Code Duplication    Length = 7-10 lines in 2 locations

includes/admin/class-admin-settings.php 1 location

@@ 88-94 (lines=7) @@
85
		 *
86
		 * @return bool
87
		 */
88
		public static function verify_nonce() {
89
			if ( empty( $_REQUEST['_give-save-settings'] ) || ! wp_verify_nonce( $_REQUEST['_give-save-settings'], 'give-save-settings' ) ) {
90
				return false;
91
			}
92
93
			return true;
94
		}
95
96
		/**
97
		 * Save the settings.

includes/setting-functions.php 1 location

@@ 158-167 (lines=10) @@
155
 *
156
 * @return bool
157
 */
158
function give_is_saving_settings() {
159
	if (
160
		empty( $_REQUEST['_give-save-settings'] )
161
		|| ! wp_verify_nonce( $_REQUEST['_give-save-settings'], 'give-save-settings' )
162
	) {
163
		return false;
164
	}
165
166
	return true;
167
}
168
169
170
/**