From 3e94f650e24691a0a06401fcf7bc0d92a00f2995 Mon Sep 17 00:00:00 2001 From: Kyle Reicks Date: Sat, 28 Jun 2014 12:06:18 -0500 Subject: [PATCH] Merge arrays with attachment data --- inc/class-picturefill-wp-function-helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class-picturefill-wp-function-helpers.php b/inc/class-picturefill-wp-function-helpers.php index 60e13a6..2ec119e 100644 --- a/inc/class-picturefill-wp-function-helpers.php +++ b/inc/class-picturefill-wp-function-helpers.php @@ -141,7 +141,7 @@ public function _set_new_responsive_image_attachment_data($attachment_data, $id) $new_attachment_data[$size] = wp_get_attachment_image_src($id, $size); } - return !empty($new_attachment_data) ? $new_attachment_data : $attachment_data; + return array_merge($attachment_data, $new_attachment_data); } public function _post_thumbnail_sizes($default_image_sizes, $image_attributes){