LLMS_Settings_Notifications::before_save()

Remove test data from $_POST so that it wont be saved to the DB


Return Return

(void)


Top ↑

Source Source

File: includes/admin/settings/class.llms.settings.notifications.php

	public function before_save() {

		if ( ! llms_verify_nonce( '_wpnonce', 'lifterlms-settings' ) ) {
			return;
		}

		if ( isset( $_POST['llms_notification_test_data'] ) ) {

			$_POST['llms_notification_test_data_temp'] = wp_unslash( $_POST['llms_notification_test_data'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
			unset( $_POST['llms_notification_test_data'] );

		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.35.0 Verify nonce & Sanitize input data.
3.24.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.