Skip to content

Commit

Permalink
Fix the debug-bar-elasticpress dependency of ElasticPress
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Dec 11, 2024
1 parent b125998 commit 9828904
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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"
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

0 comments on commit 9828904

Please sign in to comment.