Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the debug-bar-elasticpress dependency of ElasticPress #4048

Merged
merged 4 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
".",
"https://downloads.wordpress.org/plugin/classic-widgets.zip",
"https://downloads.wordpress.org/plugin/debug-bar.zip",
"https://downloads.wordpress.org/plugin/debug-bar-elasticpress.zip",
"https://downloads.wordpress.org/plugin/wordpress-importer.zip",
"10up/elasticpress-proxy#develop"
],
Expand Down
5 changes: 5 additions & 0 deletions bin/setup-cypress-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ fi
# Set twentytwentyone as the active theme here, as 2025 won't work with WP 6.0
./bin/wp-env-cli tests-wordpress "wp --allow-root theme activate twentytwentyone"

# Fix the debug-bar-elasticpress dependency of ElasticPress
./bin/wp-env-cli tests-wordpress "wp --allow-root plugin install debug-bar-elasticpress"
./bin/wp-env-cli tests-wordpress "sed -i \"s/Requires Plugins: elasticpress/Requires Plugins: $PLUGIN_NAME/\" /var/www/html/wp-content/plugins/debug-bar-elasticpress/debug-bar-elasticpress.php"
./bin/wp-env-cli tests-wordpress "wp --allow-root plugin activate debug-bar-elasticpress"

if [ ! -z $WP_VERSION ]; then
./bin/wp-env-cli tests-wordpress "wp --allow-root core update --version=${WP_VERSION} --force"
fi
Expand Down
Loading