@wordpress/env 10.26.1-next.719a03cbe.0 → 10.27.0

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.
@@ -129,6 +129,11 @@ RUN sed -i 's|deb.debian.org/debian stretch|archive.debian.org/debian stretch|g'
129
129
  RUN sed -i 's|security.debian.org/debian-security stretch|archive.debian.org/debian-security stretch|g' /etc/apt/sources.list
130
130
  RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
131
131
 
132
+ # buster (https://lists.debian.org/debian-devel-announce/2025/06/msg00001.html)
133
+ RUN sed -i 's|deb.debian.org/debian buster|archive.debian.org/debian buster|g' /etc/apt/sources.list
134
+ RUN sed -i 's|security.debian.org/debian-security buster/updates|archive.debian.org/debian-security buster/updates|g' /etc/apt/sources.list
135
+ RUN sed -i '/buster-updates/d' /etc/apt/sources.list
136
+
132
137
  # Create the host's user so that we can match ownership in the container.
133
138
  ARG HOST_USERNAME
134
139
  ARG HOST_UID
@@ -196,6 +201,7 @@ function installDependencies( service, env, config ) {
196
201
  case 'wordpress': {
197
202
  dockerFileContent += `
198
203
  # Make sure we're working with the latest packages.
204
+ RUN apt-get clean
199
205
  RUN apt-get -qy update
200
206
 
201
207
  # Install some basic PHP dependencies.
package/lib/wordpress.js CHANGED
@@ -86,13 +86,25 @@ async function configureWordPress( environment, config, spinner ) {
86
86
  // Ignore error.
87
87
  }
88
88
 
89
+ // Create a project-specific wp-cli configuration, important for the `rewrite` command.
90
+ // Don't overwrite existing configuration.
91
+ const cliConfigCommand = `[ -f /var/www/html/wp-cli.yml ] || (
92
+ exec > /var/www/html/wp-cli.yml
93
+ echo "apache_modules:"
94
+ echo " - mod_rewrite"
95
+ )`;
96
+
89
97
  const isMultisite = config.env[ environment ].multisite;
90
98
 
91
99
  const installMethod = isMultisite ? 'multisite-install' : 'install';
92
100
  const installCommand = `wp core ${ installMethod } --url="${ config.env[ environment ].config.WP_SITEURL }" --title="${ config.name }" --admin_user=admin --admin_password=password --admin_email=wordpress@example.com --skip-email`;
93
101
 
94
102
  // -eo pipefail exits the command as soon as anything fails in bash.
95
- const setupCommands = [ 'set -eo pipefail', installCommand ];
103
+ const setupCommands = [
104
+ 'set -eo pipefail',
105
+ cliConfigCommand,
106
+ installCommand,
107
+ ];
96
108
 
97
109
  // Bootstrap .htaccess for multisite
98
110
  if ( isMultisite ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/env",
3
- "version": "10.26.1-next.719a03cbe.0",
3
+ "version": "10.27.0",
4
4
  "description": "A zero-config, self contained local WordPress environment for development and testing.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -55,5 +55,5 @@
55
55
  "scripts": {
56
56
  "test": "echo \"Error: run tests from root\" && exit 1"
57
57
  },
58
- "gitHead": "5e146e949c2765411a8310bcc2641a88d036a6d9"
58
+ "gitHead": "abe06a6f2aef8d03c30ea9d5b3e133f041e523b1"
59
59
  }