[wp-trac] [WordPress Trac] #53448: Add Pinterest as a whitelisted oEmbed provider

WordPress Trac noreply at wordpress.org
Fri Aug 6 11:02:34 UTC 2021


#53448: Add Pinterest as a whitelisted oEmbed provider
-------------------------+-----------------------
 Reporter:  pento        |       Owner:  pento
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  5.9
Component:  Embeds       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------
Changes (by ayeshrajans):

 * keywords:  has-patch needs-refresh => has-patch


Comment:

 Thanks for the list @pento.
 I'd suggest this regex:


 {{{
 #https?://(?:[a-z]{2}|www)\.pinterest\.com(?:\.(?:au|mx))?/pin/\d+#i
 }}}

 This should allow all 2-letter sub domains or `www`, so it should be
 future-proof in case they add new local sub domains in the future. It
 isn't safe to assume all ccTLDs belong to Pinterest, so we only allow
 `.com`, `.com.au`, and `.com.mx`. All these followed by `pin/\d+` pattern
 as the last patch.

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


More information about the wp-trac mailing list