Ticket #47962: 47962.patch
File 47962.patch, 517 bytes (added by , 18 months ago) |
---|
-
src/js/_enqueues/wp/api-request.js
diff --git src/js/_enqueues/wp/api-request.js src/js/_enqueues/wp/api-request.js index 3ed1c68695..045f4eb985 100644
69 69 } 70 70 } 71 71 72 if ( addNonceHeader ) { 72 // Force the addiction of the nonce header for self requests only. 73 if ( addNonceHeader && -1 !== url.indexOf( wpApiSettings.root ) ) { 73 74 // Do not mutate the original headers object, if any. 74 75 headers = $.extend( { 75 76 'X-WP-Nonce': wpApiSettings.nonce