Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

add vimeo.com into oEmbed $provider_name #59

Merged
merged 4 commits into from
Jan 31, 2017

Conversation

abdusfauzi
Copy link
Contributor

Fix vimeo.com oEmbed figure wrapping.

@kkranzo
Copy link

kkranzo commented Mar 24, 2016

When will just a basic iframe (any standard iframe/non oEmbed tag in the content) wrap be added? And Tumblr should be added as well.

@diegoquinteiro
Copy link
Collaborator

@kkranzo as of the latest version you can already use <div class="embed">...</div> as a generic wrapper. Any iframe should also work too (let me know if it does not).

Copy link
Collaborator

@diegoquinteiro diegoquinteiro left a comment

Choose a reason for hiding this comment

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

Looks good. Can you rebase/fix indentation?

@@ -41,8 +41,12 @@ function instant_articles_embed_oembed_html( $html, $url, $attr, $post_ID ) {
$provider_name = 'twitter';
} elseif( false !== strpos( $providerURL, 'youtube.com' ) ) {
$provider_name = 'youtube';
} elseif( false !== strpos( $providerURL, 'vimeo.com' ) ) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please fix indentation to use tabs.

fix indent to tabs
@diegoquinteiro
Copy link
Collaborator

Indentation looks good, but still need to resolve the conflicts

@diegoquinteiro diegoquinteiro merged commit 667faac into Automattic:master Jan 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants