@wp-playground/blueprints 3.1.34 → 3.1.35

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 CHANGED
@@ -731,7 +731,10 @@ function join_paths()
731
731
 
732
732
  return preg_replace('#/+#', '/', join('/', $paths));
733
733
  }
734
- `;async function Xt(r,t){return await r.run({code:Jt+t})}const Kt=async(r,t)=>{const u=(await(await fetch(`https://api.wordpress.org/translations/core/1.0/?version=${r}`)).json()).translations.find(s=>s.language.toLowerCase()===t.toLowerCase());if(!u)throw new Error(`Failed to get ${t} translation package for WordPress ${r}.`);return u.package},ut=async(r,{language:t},n)=>{n==null||n.tracker.setCaption((n==null?void 0:n.initialCaption)||"Translating"),await r.defineConstant("WPLANG",t);const l=await r.documentRoot,u=(await r.run({code:`<?php
734
+ `;async function Xt(r,t){return await r.run({code:Jt+t})}const Kt=async(r,t)=>{const u=(await(await fetch(`https://api.wordpress.org/translations/core/1.0/?version=${r}`)).json()).translations.find(s=>s.language.toLowerCase()===t.toLowerCase());if(!u)throw new Error(`Failed to get ${t} translation package for WordPress ${r}.`);return u.package},ut=async(r,{language:t},n)=>{n==null||n.tracker.setCaption((n==null?void 0:n.initialCaption)||"Translating");const l=await r.documentRoot;await r.defineConstant("WPLANG",t),await r.run({code:`<?php
735
+ require_once ${D.phpVar(l)} . '/wp-load.php';
736
+ update_option('WPLANG', ${D.phpVar(t)});
737
+ `});const u=(await r.run({code:`<?php
735
738
  require '${l}/wp-includes/version.php';
736
739
  echo $wp_version;
737
740
  `})).text,s=[{url:await Kt(u,t),type:"core"}],p=(await r.run({code:`<?php