Fix premium plugin detection

When mounted the plugin was mounted directly to the plugin folder get_plugins() function
ignored it. We had a similar issue in the past when we were using a softlink.
Copying the plugin is a workaround that fixes the issue.
[MAILPOET-4662]
This commit is contained in:
Rostislav Wolny
2022-09-22 14:42:04 +02:00
committed by Veljko V
parent 791c9ff002
commit 17a990c94d
2 changed files with 5 additions and 3 deletions

View File

@@ -192,6 +192,8 @@ if [[ $MULTISITE == "1" ]]; then
fi
if [[ $CIRCLE_JOB == *"_with_premium_"* ]]; then
# Copy MailPoet Premium to plugin path
cp -r -n /project/mailpoet-premium /wp-core/wp-content/plugins/mailpoet-premium
# Activate MailPoet Premium
wp plugin activate mailpoet-premium
fi