@wp-playground/blueprints 3.0.14 → 3.0.16
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 +9 -0
- package/index.js.map +1 -1
- package/package.json +14 -14
package/index.cjs
CHANGED
|
@@ -304,7 +304,7 @@ Instead of: writeFiles({ writeToPath: 'wordpress/wp-content/plugins/my-plugin',
|
|
|
304
304
|
Use: writeFiles({ writeToPath: '/wordpress/wp-content/plugins/my-plugin', filesTree: { name: 'style.css': 'a { color: red; }' });
|
|
305
305
|
|
|
306
306
|
This will ensure your code works reliably regardless of the current working directory.
|
|
307
|
-
`.trim()),t=`/${t}`),await Ie.writeFiles(r,t,n.files)},Pr=async(r,{siteUrl:t})=>{await or(r,{consts:{WP_HOME:t,WP_SITEURL:t}})},Hr=async(r,{file:t},n)=>{await At(r,t,n)};async function At(r,t,n){var d;(d=n==null?void 0:n.tracker)==null||d.setCaption("Importing content"),await ar(r,{path:"/tmp/import.wxr",data:t}),await r.run({code:`<?php
|
|
307
|
+
`.trim()),t=`/${t}`),await Ie.writeFiles(r,t,n.files)},Pr=async(r,{siteUrl:t})=>{await or(r,{consts:{WP_HOME:t,WP_SITEURL:t}})},Hr=async(r,{file:t},n)=>{await At(r,t,n)};async function At(r,t,n){var d;(d=n==null?void 0:n.tracker)==null||d.setCaption("Importing content"),await ar(r,{path:"/tmp/import.wxr",data:t}),await r.run({$_SERVER:{HTTPS:(await r.absoluteUrl).startsWith("https://")?"on":""},code:`<?php
|
|
308
308
|
define('WP_LOAD_IMPORTERS', true);
|
|
309
309
|
require 'wp-load.php';
|
|
310
310
|
require 'wp-admin/includes/admin.php';
|