diff --git a/includes/admin/settings/class-wc-settings-emails.php b/includes/admin/settings/class-wc-settings-emails.php
index d2f2a173c3f..4bc41871ff4 100644
--- a/includes/admin/settings/class-wc-settings-emails.php
+++ b/includes/admin/settings/class-wc-settings-emails.php
@@ -63,7 +63,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
* @return array
*/
public function get_settings() {
- $settings = apply_filters('woocommerce_email_settings', array(
+ $settings = apply_filters( 'woocommerce_email_settings', array(
array( 'type' => 'sectionend', 'id' => 'email_recipient_options' ),
@@ -75,7 +75,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
'id' => 'woocommerce_email_from_name',
'type' => 'text',
'css' => 'min-width:300px;',
- 'default' => esc_attr(get_bloginfo('title', 'display')),
+ 'default' => esc_attr( get_bloginfo( 'name', 'display' ) ),
'autoload' => false
),
@@ -88,17 +88,17 @@ class WC_Settings_Emails extends WC_Settings_Page {
'multiple' => 'multiple'
),
'css' => 'min-width:300px;',
- 'default' => get_option('admin_email'),
+ 'default' => get_option( 'admin_email' ),
'autoload' => false
),
array( 'type' => 'sectionend', 'id' => 'email_options' ),
- array( 'title' => __( 'Email Template', 'woocommerce' ), 'type' => 'title', 'desc' => sprintf(__( 'This section lets you customise the WooCommerce emails. Click here to preview your email template. For more advanced control copy woocommerce/templates/emails/
to yourtheme/woocommerce/emails/
.', 'woocommerce' ), wp_nonce_url(admin_url('?preview_woocommerce_mail=true'), 'preview-mail')), 'id' => 'email_template_options' ),
+ array( 'title' => __( 'Email Template', 'woocommerce' ), 'type' => 'title', 'desc' => sprintf(__( 'This section lets you customise the WooCommerce emails. Click here to preview your email template. For more advanced control copy woocommerce/templates/emails/
to yourtheme/woocommerce/emails/
.', 'woocommerce' ), wp_nonce_url( admin_url( '?preview_woocommerce_mail=true' ), 'preview-mail' ) ), 'id' => 'email_template_options' ),
array(
'title' => __( 'Header Image', 'woocommerce' ),
- 'desc' => sprintf(__( 'Enter a URL to an image you want to show in the email\'s header. Upload your image using the media uploader.', 'woocommerce' ), admin_url('media-new.php')),
+ 'desc' => sprintf( __( 'Enter a URL to an image you want to show in the email\'s header. Upload your image using the media uploader.', 'woocommerce' ), admin_url( 'media-new.php' ) ),
'id' => 'woocommerce_email_header_image',
'type' => 'text',
'css' => 'min-width:300px;',
@@ -112,7 +112,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
'id' => 'woocommerce_email_footer_text',
'css' => 'width:100%; height: 75px;',
'type' => 'textarea',
- 'default' => get_bloginfo('title', 'display') . ' - ' . __( 'Powered by WooCommerce', 'woocommerce' ),
+ 'default' => get_bloginfo( 'name', 'display' ) . ' - ' . __( 'Powered by WooCommerce', 'woocommerce' ),
'autoload' => false
),