← All changes
|
vendor/themewinter/email-notification-sdk/src/Assets/Enqueue.php
+3
-0
1.0.61
→
1.0.64
View file →
| @@ -46,8 +46,11 @@ | ||
| 46 | 46 | |
| 47 | 47 | $general_prefix = Helpers::get_config_data( $this->identifier,'general_prefix' ); |
| 48 | 48 | |
| 49 | 49 | wp_localize_script( $admin_script_handler, $general_prefix . '_ens_data', [ |
| 50 | + // Must stay the 'wp_rest' action: this value is sent as the | |
| 51 | + // X-WP-Nonce header, and WordPress core rejects the whole request | |
| 52 | + // with rest_cookie_invalid_nonce if that header is anything else. | |
| 50 | 53 | 'nonce' => wp_create_nonce( 'wp_rest' ), |
| 51 | 54 | 'api_version' => 'v1', |
| 52 | 55 | 'plugin_slug' => $plugin_slug, |
| 53 | 56 | 'base_url' => site_url(), |