Make WordPress Core


Ignore:
Timestamp:
08/26/2016 09:48:32 AM (8 years ago)
Author:
wonderboymusic
Message:

OEmbed: move _wp_oembed_get_object() to embed.php, where all of the other embed functions live. WP_oEmbed is then in a file by itself. Load class-oembed.php in wp-settings.php and remove extraneous include calls.

See #37827.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r38028 r38361  
    480480            $src = 'https://www.dailymotion.com/video/' . $src_matches[2];
    481481        } else {
    482             require_once( ABSPATH . WPINC . '/class-oembed.php' );
    483482            $oembed = _wp_oembed_get_object();
    484483
Note: See TracChangeset for help on using the changeset viewer.