Skip to content

Commit

Permalink
Merge arrays with attachment data
Browse files Browse the repository at this point in the history
  • Loading branch information
kylereicks committed Jun 28, 2014
1 parent 75c6b5f commit 3e94f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-picturefill-wp-function-helpers.php
Expand Up @@ -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){
Expand Down

0 comments on commit 3e94f65

Please sign in to comment.