xwp / unsplash-wp

GNU General Public License v2.0
9 stars 3 forks source link

Add new field to avoid filter code field. #188

Closed spacedmonkey closed 4 years ago

spacedmonkey commented 4 years ago

Summary

A hotfix for WordPress 5.5-beta1.

Avoid filtering wp_get_original_image_url and wp_get_original_image_path by adding new fields.

Fixes #173

Checklist

ravichdev commented 4 years ago

@spacedmonkey This works well for the Media selectors and the Media Library, but doesn't show the correct Original URL and Unsplash name in the singe attachment edit page (accessed in Media Library list mode). We can add the filters conditionally only for this page when the post_type is attachment and it wouldn't impact the cropping feature in the single attachment edit.

Screenshot 2020-07-09 at 12 04 50 AM

spacedmonkey commented 4 years ago

I will approve once e2e tests pass.