Skip to content

Commit 487f50d

Browse files
committed
Switched to replacing any unmatched placeholders with an empty string
1 parent f12cd89 commit 487f50d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/integration/wc-placeholder-processor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public function process( $content )
175175
$content = $this->process_order_placeholders( $content );
176176
$content = $this->process_order_meta( $content );
177177
$content = $this->process_order_item_meta( $content );
178+
$content = preg_replace( '/\{[^\}]+\}/', '', $content ); // replace any unmatched placeholders with an empty string
178179
return $content;
179180
}
180181

0 commit comments

Comments
 (0)