[wp-trac] [WordPress Trac] #27237: Instagram embeds returning bad URL

WordPress Trac noreply at wordpress.org
Sun May 4 19:00:06 UTC 2014


#27237: Instagram embeds returning bad URL
--------------------------+------------------------------
 Reporter:  pbearne       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:  3.8.1
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 A workaround that worked for me:
 {{{
 function fix_instagram_images_27237( $content ) {
         // https://core.trac.wordpress.org/ticket/27237
         return preg_replace( '/(.*?)\.instagram\.com\/(.*?)_7\.jpg/',
 '$1.instagram.com/$2_8.jpg', $content );
 }
 add_filter( 'the_content', 'fix_instagram_images_27237' );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27237#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list