Merge branch 'pr/8413'

This commit is contained in:
Mike Jolley 2015-06-22 10:14:31 +01:00
commit 0d6ec24a83
1 changed files with 1 additions and 2 deletions

View File

@ -222,7 +222,6 @@ class WC_Email extends WC_Settings_API {
// Find/replace
$this->find['blogname'] = '{blogname}';
$this->find['site-title'] = '{site_title}';
$this->replace['blogname'] = $this->get_blogname();
$this->replace['site-title'] = $this->get_blogname();
@ -255,7 +254,7 @@ class WC_Email extends WC_Settings_API {
* @return string
*/
public function format_string( $string ) {
return str_replace( $this->find, $this->replace, $string );
return str_replace( apply_filters( 'woocommerce_email_format_string_find', $this->find, $this ), apply_filters( 'woocommerce_email_format_string_replace', $this->replace, $this ), $string );
}
/**