Add breakpoint flag to convert_url()#73
Conversation
Description This will allow apply the default transformations when calling the_post_thumbnail()
dugajean
left a comment
There was a problem hiding this comment.
The solution looks clean to me, but could you explain how this fixes the issue at hand?
|
@dugajean - the The flag that @pereirinha added, lets us selectively tell it to apply globals transformations, with it set to false in the breakpoint context. This however is only a partial fix, since it doesn't take into account if the featured image has it's own transformations. I have pushed a fix that uses the correct way, by converting the primary URL, and having the breakpoints part be an accessory rather than an override. |
|
Got it @DavidCramer, thanks for explaining. 😄 |
This will allow applying the default transformations when calling the_post_thumbnail().