@wp-playground/client 0.5.2 → 0.5.3
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 +455 -114
- package/index.d.ts +15 -1
- package/index.js +2186 -1789
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1684,6 +1684,20 @@ export interface DefineWpConfigConstsStep {
|
|
|
1684
1684
|
step: "defineWpConfigConsts";
|
|
1685
1685
|
/** The constants to define */
|
|
1686
1686
|
consts: Record<string, unknown>;
|
|
1687
|
+
/**
|
|
1688
|
+
* The method of defining the constants. Possible values are:
|
|
1689
|
+
*
|
|
1690
|
+
* - rewrite-wp-config: Default. Rewrites the wp-config.php file to
|
|
1691
|
+
* explicitly call define() with the requested
|
|
1692
|
+
* name and value. This method alters the file
|
|
1693
|
+
* on the disk, but it doesn't conflict with
|
|
1694
|
+
* existing define() calls in wp-config.php.
|
|
1695
|
+
* - define-before-run: Defines the constant before running the requested
|
|
1696
|
+
* script. It doesn't alter any files on the disk, but
|
|
1697
|
+
* constants defined this way may conflict with existing
|
|
1698
|
+
* define() calls in wp-config.php.
|
|
1699
|
+
*/
|
|
1700
|
+
method?: "rewrite-wp-config" | "define-before-run";
|
|
1687
1701
|
/**
|
|
1688
1702
|
* @deprecated This option is noop and will be removed in a future version.
|
|
1689
1703
|
* This option is only kept in here to avoid breaking Blueprint schema validation
|
|
@@ -1692,7 +1706,7 @@ export interface DefineWpConfigConstsStep {
|
|
|
1692
1706
|
virtualize?: boolean;
|
|
1693
1707
|
}
|
|
1694
1708
|
/**
|
|
1695
|
-
* Defines constants
|
|
1709
|
+
* Defines constants in a wp-config.php file.
|
|
1696
1710
|
*
|
|
1697
1711
|
* This step can be called multiple times, and the constants will be merged.
|
|
1698
1712
|
*
|