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 amp-tiktok for TikTok instead of amp-embedly-card #6558

Merged
merged 6 commits into from
Aug 25, 2021

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented Aug 24, 2021

Summary

See ampproject/amphtml#32219.

Fixes #6060.

Before After
Screen Shot 2021-08-24 at 13 23 29 Screen Shot 2021-08-24 at 13 22 23

Embeds can be added via the TikTok block:

image

No validation errors result:

image

Checklist

  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@westonruter westonruter added this to the v2.1.4 milestone Aug 24, 2021
@westonruter westonruter requested a review from pierlon August 24, 2021 20:25
@github-actions
Copy link
Contributor

github-actions bot commented Aug 24, 2021

Plugin builds for 4d03ae7 are ready 🛎️!

Comment on lines 140 to 142
if ( version_compare( '5.4-alpha', get_bloginfo( 'version' ), '>' ) ) {
$this->markTestSkipped( 'The TikTok embed is only available in 5.4-alpha (until 5.4 is stable)' );
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can now be removed now that the TikTok embed is generally available in WP.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not available in older versions of WP still, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support for TikTok was added in WP 5.4: https://core.trac.wordpress.org/ticket/49083

So in versions older than 5.4 we wouldn't want to test this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, we could update the message then.

Co-authored-by: Pierre Gordon <[email protected]>
Comment on lines 140 to 142
if ( version_compare( '5.4-alpha', get_bloginfo( 'version' ), '>' ) ) {
$this->markTestSkipped( 'The TikTok embed is only available in 5.4-alpha (until 5.4 is stable)' );
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, we could update the message then.

Copy link
Contributor

@pierlon pierlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the layout shifting reported in ampproject/amphtml#35789, this looks good 👍.

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

Successfully merging this pull request may close these issues.

Update the TikTok embed handler to use amp-tiktok component
2 participants