From 2c0523bb4324d008d26ba88897d6726439303c8f Mon Sep 17 00:00:00 2001 From: EarthlingDavey <15802017+EarthlingDavey@users.noreply.github.com> Date: Mon, 18 Nov 2024 16:39:56 +0000 Subject: [PATCH] Update composer-post-install.sh --- bin/composer-post-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/composer-post-install.sh b/bin/composer-post-install.sh index 278a82180..67eb322a9 100755 --- a/bin/composer-post-install.sh +++ b/bin/composer-post-install.sh @@ -92,7 +92,8 @@ verify_composer_package_version "wpackagist-plugin/elasticpress" $ELASTIC_PRESS_ ELASTIC_PRESS_FILE=/var/www/html/public/app/mu-plugins/elasticpress/includes/classes/Indexable/Post/SyncManager.php ELASTIC_PRESS_SEARCH="\t\$this->action_delete_post( \$post_id );" -ELASTIC_PRESS_REPLACE="\t\$indexable->get( \$post_id ) \&\& \$this->action_delete_post( \$post_id );" +ELASTIC_PRESS_REPLACE="\t\/\/ The following line was modified by composer-post-install.sh\n\t\t" +ELASTIC_PRESS_REPLACE="$ELASTIC_PRESS_REPLACE\t\$indexable->get( \$post_id ) \&\& \$this->action_delete_post( \$post_id );" if [ -f "$ELASTIC_PRESS_FILE" ] ; then echo "Fixing warning in elasticpress. Checking for doc before deleting prevents 404s in logs..."