fixed error in fetch
This commit is contained in:
@@ -8,7 +8,7 @@ export function PLGNTLS_fetch(url, options = {}) {
|
||||
url = PLGNTLS_data.fetch_url + url;
|
||||
|
||||
options.headers = options.headers || {};
|
||||
options.headers['X-WP-Nonce'] = PLGNTLS_data.fetch_nonce,
|
||||
options.headers['X-WP-Nonce'] = PLGNTLS_data.fetch_nonce;
|
||||
|
||||
return fetch(url, options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user