Make WordPress Core

Changeset 41681


Ignore:
Timestamp:
10/02/2017 07:09:46 PM (8 years ago)
Author:
johnbillion
Message:

Embeds: Add oEmbed support for someecards.com.

Props someecards

Fixes #40792

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.gitignore

    r41381 r41681  
    5858*.diff
    5959.svn
     60
     61vendor
  • trunk/src/wp-includes/class-oembed.php

    r41680 r41681  
    115115            '#https?://(www\.)?amzn\.asia/.*#i'                                   => array( 'https://read.amazon.com.au/kp/api/oembed',              true  ),
    116116            '#https?://(www\.)?z\.cn/.*#i'                                        => array( 'https://read.amazon.cn/kp/api/oembed',                  true  ),
     117            '#https?://www\.someecards\.com/.+-cards/.+#i'                        => array( 'https://www.someecards.com/v2/oembed/',                 true  ),
     118            '#https?://www\.someecards\.com/usercards/viewcard/.+#i'              => array( 'https://www.someecards.com/v2/oembed/',                 true  ),
     119            '#https?://some\.ly\/.+#i'                                            => array( 'https://www.someecards.com/v2/oembed/',                 true  ),
    117120        );
    118121
     
    195198         * | Amazon       | amzn.to|eu|in|asia                |      Yes       | 4.9.0   |
    196199         * | Amazon       | z.cn                              |      Yes       | 4.9.0   |
     200         * | Someecards   | someecards.com                    |      Yes       | 4.9.0   |
     201         * | Someecards   | some.ly                           |      Yes       | 4.9.0   |
    197202         *
    198203         * No longer supported providers:
Note: See TracChangeset for help on using the changeset viewer.