Make WordPress Core


Ignore:
Timestamp:
09/30/2016 08:39:32 PM (8 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.