WordPress.org

Make WordPress Core

Changeset 38691


Ignore:
Timestamp:
09/30/2016 08:39:32 PM (3 years ago)
Author:
ocean90
Message:

Embeds: Add support for embedding Facebook photos of a user/page.

See #34737.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-oembed.php

    r38684 r38691  
    9898            '#https?://www\.facebook\.com/.*/posts/.*#i'          => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
    9999            '#https?://www\.facebook\.com/.*/activity/.*#i'       => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
     100            '#https?://www\.facebook\.com/.*/photos/.*#i'         => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
    100101            '#https?://www\.facebook\.com/photo(s/|\.php).*#i'    => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
    101102            '#https?://www\.facebook\.com/permalink\.php.*#i'     => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
Note: See TracChangeset for help on using the changeset viewer.