@@ -25,7 +25,7 @@ if $INSTALL_DEFAULT_THEME; then
25
25
26
26
if ddev wp theme is-installed ${DEFAULT_THEME_SLUG} > /dev/null 2>&1 ; then
27
27
DEFAULT_THEME_NAME=$( ddev wp theme get ${DEFAULT_THEME_SLUG} --field=name)
28
- printf " ${YELLOW }${DEFAULT_THEME_NAME} is already installed. Skipping installation.${RESET} \n"
28
+ printf " ${BLACK }${DEFAULT_THEME_NAME} is already installed. Skipping installation.${RESET} \n"
29
29
else
30
30
ddev wp theme install $DEFAULT_THEME_SLUG
31
31
fi
@@ -36,7 +36,7 @@ if $INSTALL_STARTER_THEME; then
36
36
if ddev wp theme is-installed ${STARTER_THEME_SLUG} > /dev/null 2>&1 ; then
37
37
CUSTOM_THEME_NAME=$( ddev wp theme get ${STARTER_THEME_SLUG} --field=name)
38
38
printf " ${BLUE} Installing ${CUSTOM_THEME_NAME} ...${RESET} \n"
39
- printf " ${YELLOW }${CUSTOM_THEME_NAME} is already installed. Skipping installation.${RESET} \n"
39
+ printf " ${BLACK }${CUSTOM_THEME_NAME} is already installed. Skipping installation.${RESET} \n"
40
40
else
41
41
printf " ${BLUE} Creating ${STARTER_THEME_SLUG} directory...${RESET} \n"
42
42
git clone git@github.com:jacobcassidy/cassidywp-starter-block-theme.git wp-content/themes/${STARTER_THEME_SLUG}
@@ -59,7 +59,7 @@ if $INSTALL_AIOM_PLUGIN; then
59
59
60
60
if ddev wp plugin is-installed ${PLUGIN_SLUG_AIOM} > /dev/null 2>&1 ; then
61
61
PLUGIN_NAME_AIOM=$( ddev wp plugin get ${PLUGIN_SLUG_AIOM} --field=title)
62
- printf " ${YELLOW }${PLUGIN_NAME_AIOM} is already installed. Skipping installation.${RESET} \n"
62
+ printf " ${BLACK }${PLUGIN_NAME_AIOM} is already installed. Skipping installation.${RESET} \n"
63
63
else
64
64
ddev wp plugin install $PLUGIN_SLUG_AIOM --activate
65
65
fi
@@ -72,7 +72,7 @@ if $INSTALL_LOCAL_AIOMUE_PLUGIN; then
72
72
73
73
if ddev wp plugin is-installed ${PLUGIN_SLUG_AIOMUE} > /dev/null 2>&1 ; then
74
74
PLUGIN_NAME_AIOMUE=$( ddev wp plugin get ${PLUGIN_SLUG_AIOMUE} --field=title)
75
- printf " ${YELLOW }${PLUGIN_NAME_AIOMUE} is already installed. Skipping installation.${RESET} \n"
75
+ printf " ${BLACK }${PLUGIN_NAME_AIOMUE} is already installed. Skipping installation.${RESET} \n"
76
76
else
77
77
unzip " $LOCAL_AIOMUE_PATH " -x " __MACOSX/*" -d ./wp-content/plugins
78
78
printf " ${BLUE} Activating All-In-One Migration Unlimited Extension plugin...${RESET} \n"
@@ -87,7 +87,7 @@ if $INSTALL_QUERY_MONITOR_PLUGIN; then
87
87
88
88
if ddev wp plugin is-installed ${PLUGIN_SLUG_QM} > /dev/null 2>&1 ; then
89
89
PLUGIN_NAME_QM=$( ddev wp plugin get ${PLUGIN_SLUG_QM} --field=title)
90
- printf " ${YELLOW }${PLUGIN_NAME_QM} is already installed. Skipping installation.${RESET} \n"
90
+ printf " ${BLACK }${PLUGIN_NAME_QM} is already installed. Skipping installation.${RESET} \n"
91
91
else
92
92
ddev wp plugin install $PLUGIN_SLUG_QM --activate
93
93
fi
97
97
printf " ${BLUE} Setting WP permalinks to use '%%postname%%'...${RESET} \n"
98
98
99
99
if [[ $( ddev wp option get permalink_structure) == ' /%postname%' ]]; then
100
- printf " ${YELLOW } The permalink structure is already using '%%postname%%'. Skipping restructure.${RESET} \n"
100
+ printf " ${BLACK } The permalink structure is already using '%%postname%%'. Skipping restructure.${RESET} \n"
101
101
else
102
102
ddev wp rewrite structure ' /%postname%'
103
103
fi
@@ -127,30 +127,30 @@ printf "${BLUE}Deleting WordPress' default 'Hello, World' post...${RESET}\n"
127
127
if ddev wp post exists 1 > /dev/null 2>&1 ; then
128
128
ddev wp post delete 1 --force
129
129
else
130
- printf " ${YELLOW } Post with ID 1 does not exist. Skipping deletion.${RESET} \n"
130
+ printf " ${BLACK } Post with ID 1 does not exist. Skipping deletion.${RESET} \n"
131
131
fi
132
132
133
133
# Delete Sample Page
134
134
printf " ${BLUE} Deleting WordPress' default 'Sample Page'...${RESET} \n"
135
135
if ddev wp post exists 2 > /dev/null 2>&1 ; then
136
136
ddev wp post delete 2 --force
137
137
else
138
- printf " ${YELLOW } Post with ID 2 does not exist. Skipping deletion.${RESET} \n"
138
+ printf " ${BLACK } Post with ID 2 does not exist. Skipping deletion.${RESET} \n"
139
139
fi
140
140
141
141
# Delete Privacy Policy draft page
142
142
printf " ${BLUE} Deleting WordPress' default 'Privacy Policy'...${RESET} \n"
143
143
if ddev wp post exists 3 > /dev/null 2>&1 ; then
144
144
ddev wp post delete 3 --force
145
145
else
146
- printf " ${YELLOW } Post with ID 3 does not exist. Skipping deletion.${RESET} \n"
146
+ printf " ${BLACK } Post with ID 3 does not exist. Skipping deletion.${RESET} \n"
147
147
fi
148
148
149
149
# Create a 'Homepage' page
150
150
printf " ${BLUE} Creating a new page titled 'Homepage' and setting it to be the site's front page...${RESET} \n"
151
151
152
152
if [[ $( ddev wp option get show_on_front) == ' page' ]]; then
153
- printf " ${YELLOW } Homepage already exists. Skipping creation.${RESET} \n"
153
+ printf " ${BLACK } Homepage already exists. Skipping creation.${RESET} \n"
154
154
else
155
155
HOMEPAGE_ID=$( ddev wp post create --post_type=page --post_title=' Homepage' --post_author=1 --post_status=publish --post_content=' <!-- wp:paragraph --><p>This is the homepage.</p><!-- /wp:paragraph -->' --porcelain)
156
156
ddev wp option update show_on_front ' page'
0 commit comments