Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean the Utility::add_media() function #382

Closed
alimuzzaman opened this issue May 16, 2019 · 0 comments
Closed

Clean the Utility::add_media() function #382

alimuzzaman opened this issue May 16, 2019 · 0 comments
Assignees
Milestone

Comments

@alimuzzaman
Copy link
Contributor

alimuzzaman commented May 16, 2019

Update the function so that it can easily handle Retina and WebP sizes.

Also added new function Utility::get_path_and_url(). It's return gs_name and absolute path for all image size including full size.
It would be useful to use in compatibility, where we now have to write once instead of twice. Once for full size image and once for thumbnails.
Utility::add_media() also utilize this function now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants