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

Improved odin_get_image_url return #332

Merged
merged 2 commits into from
Aug 12, 2015
Merged

Improved odin_get_image_url return #332

merged 2 commits into from
Aug 12, 2015

Conversation

pauloiankoski
Copy link
Contributor

When $origin_url is smaller than custom $width and $height, odin_get_image_url returns empty.

When $origin_url is smaller than custom $width and $height, odin_get_image_url returns empty.
@claudiosanches
Copy link
Member

@pauloiankoski
Copy link
Contributor Author

Feito. Tks! ;)

claudiosanches added a commit that referenced this pull request Aug 12, 2015
Improved odin_get_image_url return
@claudiosanches claudiosanches merged commit 035668e into wpbrasil:master Aug 12, 2015
@pauloiankoski pauloiankoski deleted the patch-6 branch August 12, 2015 15:46
@adammacias
Copy link
Member

Nesse caso, dava até para usar o operador ternário

return ( $url ) ?  $url : $origin_url;

@adammacias adammacias added this to the v2.8.0 milestone Aug 12, 2015
@claudiosanches
Copy link
Member

Também seria mais bonito, e ne precisa dos ().

@adammacias
Copy link
Member

👍

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

Successfully merging this pull request may close these issues.

3 participants