Error thrown

Call to undefined method WP_Error::merge_from()