backwards compatibility
This commit is contained in:
parent
89f07da20d
commit
c9092d5dbf
|
@ -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>',
|
||||||
),
|
),
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue