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

View File

@ -12,7 +12,7 @@ services:
- mailhog-data:/mailhog-data
- ../..:/project
- ../..:/wp-core/wp-content/plugins/mailpoet
- ../../../mailpoet-premium:/wp-core/wp-content/plugins/mailpoet-premium
- ../../../mailpoet-premium:/project/mailpoet-premium
- ./codeception/docker-entrypoint.sh:/docker-entrypoint.sh
- ../../../dev/php.ini:/usr/local/etc/php/conf.d/php_user.ini
- ../../../dev/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
@ -39,7 +39,7 @@ services:
- mailhog-data:/mailhog-data
- ../..:/project
- ../..:/wp-core/wp-content/plugins/mailpoet
- ../../../mailpoet-premium:/wp-core/wp-content/plugins/mailpoet-premium
- ../../../mailpoet-premium:/project/mailpoet-premium
- ./codeception/docker-entrypoint.sh:/docker-entrypoint.sh
- ../../../dev/php.ini:/usr/local/etc/php/conf.d/php_user.ini
- ../../../dev/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
@ -77,7 +77,7 @@ services:
volumes:
- wp-core:/var/www/html
- ../..:/var/www/html/wp-content/plugins/mailpoet
- ../../../mailpoet-premium:/wp-core/wp-content/plugins/mailpoet-premium
- ../../../mailpoet-premium:/project/mailpoet-premium
tmpfs:
- /var/www/html/wp-content/uploads/mailpoet/
ports: