parent
93a6f68408
commit
6647b35585
|
@ -261,6 +261,10 @@ class WC_Email extends WC_Settings_API {
|
|||
$find = array_merge( (array) $this->find, $find );
|
||||
$replace = array_merge( (array) $this->replace, $replace );
|
||||
|
||||
// Take care of blogname which is no longer defined as a valid placeholder.
|
||||
$find[] = '{blogname}';
|
||||
$replace[] = $this->get_blogname();
|
||||
|
||||
// If using the older style filters for find and replace, ensure the array is associative and then pass through filters. @todo deprecate in 4.0.0.
|
||||
if ( has_filter( 'woocommerce_email_format_string_replace' ) || has_filter( 'woocommerce_email_format_string_find' ) ) {
|
||||
$legacy_find = $this->find;
|
||||
|
|
Loading…
Reference in New Issue