Ticket #21704: instagram-oembed.diff
| File instagram-oembed.diff, 840 bytes (added by bananastalktome, 10 months ago) |
|---|
-
wp-includes/class-oembed.php
48 48 '#http://(.+\.)?polldaddy\.com/.*#i' => array( 'http://polldaddy.com/oembed/', true ), 49 49 '#http://(www\.)?funnyordie\.com/videos/.*#i' => array( 'http://www.funnyordie.com/oembed', true ), 50 50 '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true ), 51 '#http://instagr(\.am|am\.com)/p/.*#i' => array( 'http://api.instagram.com/oembed', true ), 51 52 ) ); 52 53 53 54 // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().