backwards compatibility

This commit is contained in:
Remi Corson 2020-02-11 16:35:40 +01:00
parent 89f07da20d
commit c9092d5dbf
2 changed files with 3 additions and 0 deletions

View File

@ -289,6 +289,7 @@ class WC_Emails {
return str_replace( return str_replace(
array( array(
'{site_title}', '{site_title}',
'{site_address}',
'{site_url}', '{site_url}',
'{woocommerce}', '{woocommerce}',
'{WooCommerce}', '{WooCommerce}',
@ -296,6 +297,7 @@ class WC_Emails {
array( array(
$this->get_blogname(), $this->get_blogname(),
$domain, $domain,
$domain,
'<a href="https://woocommerce.com">WooCommerce</a>', '<a href="https://woocommerce.com">WooCommerce</a>',
'<a href="https://woocommerce.com">WooCommerce</a>', '<a href="https://woocommerce.com">WooCommerce</a>',
), ),

View File

@ -232,6 +232,7 @@ class WC_Email extends WC_Settings_API {
$this->placeholders = array_merge( $this->placeholders = array_merge(
array( array(
'{site_title}' => $this->get_blogname(), '{site_title}' => $this->get_blogname(),
'{site_address}' => wp_parse_url( home_url(), PHP_URL_HOST ),
'{site_url}' => wp_parse_url( home_url(), PHP_URL_HOST ), '{site_url}' => wp_parse_url( home_url(), PHP_URL_HOST ),
), ),
$this->placeholders $this->placeholders