LLMS_Settings_Notifications::before_save()
Remove test data from $_POST so that it wont be saved to the DB
Return Return
(void)
Source Source
File: includes/admin/settings/class.llms.settings.notifications.php
243 244 245 246 247 248 249 250 251 252 253 254 255 256 | 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' ] ); } } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.35.0 | Verify nonce & Sanitize input data. |
3.24.0 | Introduced. |