[wp-trac] [WordPress Trac] #41984: Imgur API requires SSL

WordPress Trac noreply at wordpress.org
Tue Sep 26 13:56:11 UTC 2017


#41984: Imgur API requires SSL
------------------------------+---------------------
 Reporter:  GunGeekATX        |       Owner:  dd32
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  4.9
Component:  Embeds            |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------

Comment (by GunGeekATX):

 Thanks.  Related to this, Imgur also has albums and galleries which can be
 embedded.  I've added these to the current project I'm working on (which
 is how I noticed the https issue).  I can open a new ticket and patch if
 sounds like something that should be supported in core.

 {{{
 // Add providers for albums and galleries.
 $providers['#https?://(.+\.)?imgur\.com/a/.*#i'] = array(
         'https://api.imgur.com/oembed',
         true,
 );

 $providers['#https?://(.+\.)?imgur\.com/gallery/.*#i'] = array(
         'https://api.imgur.com/oembed',
         true,
 );
 }}}

 Examples:
 https://imgur.com/a/frTsT
 https://imgur.com/gallery/11TsUHK

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


More information about the wp-trac mailing list