-
Notifications
You must be signed in to change notification settings - Fork 384
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
Conversation
Plugin builds for 4d03ae7 are ready 🛎️!
|
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)' ); | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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]>
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)' ); | ||
} |
There was a problem hiding this comment.
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]>
There was a problem hiding this 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 👍.
Co-authored-by: Pierre Gordon <[email protected]>
Summary
See ampproject/amphtml#32219.
Fixes #6060.
Embeds can be added via the TikTok block:
No validation errors result:
Checklist