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-includes/class-oembed.php

    r38230 r38361  
    678678    }
    679679}
    680 
    681 /**
    682  * Returns the initialized WP_oEmbed object.
    683  *
    684  * @since 2.9.0
    685  * @access private
    686  *
    687  * @staticvar WP_oEmbed $wp_oembed
    688  *
    689  * @return WP_oEmbed object.
    690  */
    691 function _wp_oembed_get_object() {
    692     static $wp_oembed = null;
    693 
    694     if ( is_null( $wp_oembed ) ) {
    695         $wp_oembed = new WP_oEmbed();
    696     }
    697     return $wp_oembed;
    698 }
Note: See TracChangeset for help on using the changeset viewer.