@wp-playground/blueprints 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1 -1
- package/index.cjs.map +1 -1
- package/index.js +1 -6
- package/index.js.map +1 -1
- package/package.json +14 -14
package/index.cjs
CHANGED
|
@@ -332,7 +332,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
332
332
|
$query = $stream->get_query();
|
|
333
333
|
$wpdb->query($query);
|
|
334
334
|
}
|
|
335
|
-
`});return await nr(r,{path:f}),await nr(r,{path:d}),p},Vr=async(r,{request:t})=>{ae.logger.warn('Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.');const n=await r.request(t);if(n.httpStatusCode>399||n.httpStatusCode<200)throw ae.logger.warn("WordPress response was",{response:n}),new Error(`Request failed with status ${n.httpStatusCode}`);return n},lr=async(r,{consts:t,method:n="define-before-run"})=>{switch(n){case"define-before-run":await Vt(r,t);break;case"rewrite-wp-config":{const f=await r.documentRoot,d=I.joinPaths(f,"/wp-config.php");await xr.defineWpConfigConstants(r,d,t
|
|
335
|
+
`});return await nr(r,{path:f}),await nr(r,{path:d}),p},Vr=async(r,{request:t})=>{ae.logger.warn('Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.');const n=await r.request(t);if(n.httpStatusCode>399||n.httpStatusCode<200)throw ae.logger.warn("WordPress response was",{response:n}),new Error(`Request failed with status ${n.httpStatusCode}`);return n},lr=async(r,{consts:t,method:n="define-before-run"})=>{switch(n){case"define-before-run":await Vt(r,t);break;case"rewrite-wp-config":{const f=await r.documentRoot,d=I.joinPaths(f,"/wp-config.php");await xr.defineWpConfigConstants(r,d,t);break}default:throw new Error(`Invalid method: ${n}`)}};async function Vt(r,t){for(const n in t)await r.defineConstant(n,t[n])}const kr=async(r,{options:t})=>{const n=await r.documentRoot;await r.run({code:`<?php
|
|
336
336
|
include ${I.phpVar(n)} . '/wp-load.php';
|
|
337
337
|
$site_options = ${I.phpVar(t)};
|
|
338
338
|
foreach($site_options as $name => $value) {
|