From 0d52064bd868c8e0fc79f6167453d92fa190f8f3 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 20 Jan 2014 15:33:33 +0000 Subject: [PATCH] Attachments is an array Closes #4531 --- includes/abstracts/abstract-wc-email.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/abstracts/abstract-wc-email.php b/includes/abstracts/abstract-wc-email.php index e193ced0b0f..774feb4565d 100644 --- a/includes/abstracts/abstract-wc-email.php +++ b/includes/abstracts/abstract-wc-email.php @@ -237,10 +237,10 @@ abstract class WC_Email extends WC_Settings_API { * get_attachments function. * * @access public - * @return string + * @return array */ function get_attachments() { - return apply_filters( 'woocommerce_email_attachments', '', $this->id, $this->object ); + return apply_filters( 'woocommerce_email_attachments', array(), $this->id, $this->object ); } /**