Replace {sitde_address} by {site_url} for consistency
Replace {sitde_address} by {site_url} for consistency in WooCommerce emails, for better consistency.
This commit is contained in:
parent
fa1f18e7c1
commit
89f07da20d
|
@ -128,7 +128,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
array(
|
||||
'title' => __( 'Footer text', 'woocommerce' ),
|
||||
/* translators: %s: Available placeholders for use */
|
||||
'desc' => __( 'The text to appear in the footer of all WooCommerce emails.', 'woocommerce' ) . ' ' . sprintf( __( 'Available placeholders: %s', 'woocommerce' ), '{site_title} {site_address}' ),
|
||||
'desc' => __( 'The text to appear in the footer of all WooCommerce emails.', 'woocommerce' ) . ' ' . sprintf( __( 'Available placeholders: %s', 'woocommerce' ), '{site_title} {site_url}' ),
|
||||
'id' => 'woocommerce_email_footer_text',
|
||||
'css' => 'width:400px; height: 75px;',
|
||||
'placeholder' => __( 'N/A', 'woocommerce' ),
|
||||
|
|
|
@ -289,7 +289,7 @@ class WC_Emails {
|
|||
return str_replace(
|
||||
array(
|
||||
'{site_title}',
|
||||
'{site_address}',
|
||||
'{site_url}',
|
||||
'{woocommerce}',
|
||||
'{WooCommerce}',
|
||||
),
|
||||
|
|
|
@ -112,7 +112,7 @@ if ( ! class_exists( 'WC_Email_Customer_Invoice', false ) ) :
|
|||
* @return string
|
||||
*/
|
||||
public function get_default_additional_content() {
|
||||
return __( 'Thanks for using {site_address}!', 'woocommerce' );
|
||||
return __( 'Thanks for using {site_url}!', 'woocommerce' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -141,7 +141,7 @@ if ( ! class_exists( 'WC_Email_Customer_Processing_Order', false ) ) :
|
|||
* @return string
|
||||
*/
|
||||
public function get_default_additional_content() {
|
||||
return __( 'Thanks for using {site_address}!', 'woocommerce' );
|
||||
return __( 'Thanks for using {site_url}!', 'woocommerce' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ class WC_Email extends WC_Settings_API {
|
|||
$this->placeholders = array_merge(
|
||||
array(
|
||||
'{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 ),
|
||||
),
|
||||
$this->placeholders
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue