update correlation in performance requests (#40359)

* update correlation

* update correlation
This commit is contained in:
nigeljamesstevenson 2023-09-22 00:10:38 +01:00 committed by GitHub
parent ce7038d814
commit 3544ef300f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
Update correlation to allow previously removed Perf Requests to run again

View File

@ -58,8 +58,8 @@ export function homeWCAdmin( includeTests = {} ) {
// Correlate nonce values for use in subsequent requests.
api_x_wp_nonce = findBetween(
response.body,
'wp-json\\/","nonce":"',
'",'
'wp.apiFetch.createNonceMiddleware( "',
'"'
);
// Create request header with nonce value for use in subsequent requests.