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

Use customizable width/height args on AMP_Twitter_Embed_Handler rather than literals/defaults #6510

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented Aug 3, 2021

This is a follow-up on #6504, fixing a flaw identified by @pierlon in https://github.com/ampproject/amp-wp/pull/6504/files#r681340739.

Instead of using auto as the width, it should have been using $this->args['width] which by default is auto but can be customized.

Similarly, instead of using DEFAULT_HEIGHT as the height, it should be using $this->args['height'] which is customizable.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2021

Plugin builds for 8b14b85 are ready 🛎️!

@westonruter westonruter merged commit 12beda5 into develop Aug 4, 2021
@westonruter westonruter deleted the improve/amp-twitter-dimension-attrs branch August 4, 2021 19:16
@westonruter westonruter added the Changelogged Whether the issue/PR has been added to release notes. label Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelogged Whether the issue/PR has been added to release notes. Embeds
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants