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:
Remi Corson 2020-02-11 10:46:32 +01:00
parent fa1f18e7c1
commit 89f07da20d
5 changed files with 5 additions and 5 deletions

View File

@ -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' ),

View File

@ -289,7 +289,7 @@ class WC_Emails {
return str_replace(
array(
'{site_title}',
'{site_address}',
'{site_url}',
'{woocommerce}',
'{WooCommerce}',
),

View File

@ -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' );
}
/**

View File

@ -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' );
}
}

View File

@ -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
);