| @@ -4,8 +4,9 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @author ThimPress |
| 6 | 6 | * @package LearnPress/Functions |
| 7 | 7 | * @version 1.0 |
| 8 | + * @deprecated 4.2.5.4 Addon learnpress-2checkout-payment v4.0.1 is using | |
| 8 | 9 | */ |
| 9 | 10 | |
| 10 | 11 | defined( 'ABSPATH' ) || exit(); |
| 11 | 12 | |
| @@ -71,9 +72,9 @@ | ||
| 71 | 72 | do_action( 'learn_press_web_hook_' . $param, $_REQUEST ); |
| 72 | 73 | } else { |
| 73 | 74 | |
| 74 | 75 | } |
| 75 | - $web_hooks_processed[ $param ] = $_REQUEST; | |
| 76 | + $web_hooks_processed[ $param ] = LP_Helper::sanitize_params_submitted( $_REQUEST ); | |
| 76 | 77 | break; |
| 77 | 78 | } |
| 78 | 79 | } |
| 79 | 80 | if ( $web_hooks_processed ) { |
| @@ -86,9 +87,9 @@ | ||
| 86 | 87 | print_r( $v ); |
| 87 | 88 | echo "</pre>\n===============================================================\n"; |
| 88 | 89 | } |
| 89 | 90 | $output = ob_get_clean(); |
| 90 | - wp_die( $output, __( 'LearnPress webhook process Complete', 'learnpress' ), array( 'response' => 200 ) ); | |
| 91 | + wp_die( $output, __( 'The LearnPress webhook process is complete', 'learnpress' ), array( 'response' => 200 ) ); | |
| 91 | 92 | } |
| 92 | 93 | } |
| 93 | 94 | |
| 94 | 95 | add_action( 'wp_loaded', 'learn_press_process_web_hooks', 999 ); |