Skip to content

Commit 6c4044b

Browse files
authored
Merge pull request #78 from bueltge/updates
Updates
2 parents 6a28a1e + 9063da7 commit 6c4044b

39 files changed

+2452
-1121
lines changed

.ddev/commands/favicon1.ico

66.1 KB
Binary file not shown.

.ddev/commands/favicon2.ico

66.1 KB
Binary file not shown.

.ddev/commands/favicon3.ico

66.1 KB
Binary file not shown.

.ddev/commands/favicon4.ico

66.1 KB
Binary file not shown.

.ddev/commands/favicon5.ico

66.1 KB
Binary file not shown.

.ddev/commands/web/orchestrate.d/10_wp_install.sh

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,12 @@ if [ ! -z "${RECREATE_ENV}" ]; then
55
wp db clean --yes
66
fi
77

8-
if [ "${WP_MULTISITE}" = "true" ]; then
9-
wp core multisite-install \
10-
--title="${WP_TITLE}" \
11-
--admin_user="${ADMIN_USER}" \
12-
--admin_password="${ADMIN_PASS}" \
13-
--url="${DDEV_PRIMARY_URL}" \
14-
--admin_email="${ADMIN_EMAIL}" \
15-
--skip-email
16-
17-
readarray -d , -t slugs <<< "${WP_MULTISITE_SLUGS},"; unset "slugs[-1]";
18-
for slug in "${slugs[@]}"; do
19-
if [ ! -z "${slug}" ]; then
20-
wp site create --slug="${slug}"
21-
fi
22-
done
238

24-
else
25-
wp core install \
9+
wp core multisite-install \
2610
--title="${WP_TITLE}" \
2711
--admin_user="${ADMIN_USER}" \
2812
--admin_password="${ADMIN_PASS}" \
2913
--url="${DDEV_PRIMARY_URL}" \
3014
--admin_email="${ADMIN_EMAIL}" \
3115
--skip-email
32-
fi
16+
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/bash
22

33
wp plugin is-installed akismet && wp plugin uninstall akismet
4-
wp plugin is-installed hello && wp plugin uninstall hello
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
3+
pushd "${DDEV_DOCROOT}"
4+
5+
wp user create usite1 [email protected] --role=administrator --porcelain --url="${DDEV_PRIMARY_URL}/site1"
6+
wp user create usite2 [email protected] --role=administrator --porcelain --url="${DDEV_PRIMARY_URL}/site2"
7+
wp user create usite3 [email protected] --role=administrator --porcelain --url="${DDEV_PRIMARY_URL}/site3"
8+
wp user create usite4 [email protected] --role=administrator --porcelain --url="${DDEV_PRIMARY_URL}/site4"
9+
wp user create usite5 [email protected] --role=administrator --porcelain --url="${DDEV_PRIMARY_URL}/site5"
10+
11+
wp site create --slug="site1" [email protected]
12+
wp site create --slug="site2" [email protected]
13+
wp site create --slug="site3" [email protected]
14+
wp site create --slug="site4" [email protected]
15+
wp site create --slug="site5" [email protected]
16+
17+
wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site1"
18+
wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site2"
19+
wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site3"
20+
wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site4"
21+
wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site5"
22+
23+
wp plugin install user-switching --force --activate-network --version=1.7.0
24+
25+
wp plugin activate hello --url="${DDEV_PRIMARY_URL}/site2"
26+
wp plugin activate hello --url="${DDEV_PRIMARY_URL}/site4"
27+
28+
wp theme install twentytwentyone --force
29+
wp theme install twentytwentytwo --force
30+
wp theme install twentytwentythree --force
31+
wp theme install twentytwentyfour --force
32+
33+
wp theme enable twentytwentyfour --network
34+
wp theme enable twentytwentythree --network
35+
wp theme enable twentytwentytwo --network
36+
wp theme enable twentytwentyone --network
37+
38+
cp "/var/www/html/.ddev/commands/favicon1.ico" "/var/www/html/.ddev/wordpress/wp-content/themes/twentytwentyone/favicon.ico"
39+
cp "/var/www/html/.ddev/commands/favicon2.ico" "/var/www/html/.ddev/wordpress/wp-content/themes/twentytwentytwo/favicon.ico"
40+
cp "/var/www/html/.ddev/commands/favicon3.ico" "/var/www/html/.ddev/wordpress/wp-content/themes/twentytwentythree/favicon.ico"
41+
cp "/var/www/html/.ddev/commands/favicon4.ico" "/var/www/html/.ddev/wordpress/wp-content/themes/twentytwentyfour/favicon.ico"
42+
43+
wp theme activate twentytwentyfour --url="${DDEV_PRIMARY_URL}/site4"
44+
wp theme activate twentytwentythree --url="${DDEV_PRIMARY_URL}/site3"
45+
wp theme activate twentytwentytwo --url="${DDEV_PRIMARY_URL}/site2"
46+
wp theme activate twentytwentyone --url="${DDEV_PRIMARY_URL}/site1"
47+
48+

.ddev/commands/web/orchestrate.d/50_setup_whoops.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.ddev/config.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: multisite-enhancements
22
type: php
33
docroot: .ddev/wordpress
4-
php_version: "8.3"
4+
php_version: "7.2"
55
nodejs_version: "18"
66
webserver_type: apache-fpm
77
router_http_port: "80"
@@ -20,11 +20,9 @@ hooks:
2020
- exec-host: "mkdir -p .ddev/wordpress/wp-content/plugins/${DDEV_PROJECT}"
2121

2222
web_environment:
23-
- WP_VERSION=6.5.3
23+
- WP_VERSION=6.5.4
2424
- WP_LOCALE=de_DE
25-
- WP_TITLE=DDEV Search and Replace Test
26-
- WP_MULTISITE=true
27-
- WP_MULTISITE_SLUGS=seite1,seite2
25+
- WP_TITLE=DDEV Multisite Enhancements Test
2826
- ADMIN_USER=admin
2927
- ADMIN_PASS=admin
3028

0 commit comments

Comments
 (0)