_wp_oembed_get_object

The timeline below displays how wordpress function _wp_oembed_get_object has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Returns the initialized WP_oEmbed object.
 *
 * @since 2.9.0
 * @access private
 *
 * @return WP_oEmbed object.
 */
function _wp_oembed_get_object()
{
    static $wp_oembed = null;
    if (is_null($wp_oembed)) {
        $wp_oembed = new WP_oEmbed();
    }
    return $wp_oembed;
}

WordPress Version: 4.5

/**
 * Returns the initialized WP_oEmbed object.
 *
 * @since 2.9.0
 * @access private
 *
 * @staticvar WP_oEmbed $wp_oembed
 *
 * @return WP_oEmbed object.
 */
function _wp_oembed_get_object()
{
    static $wp_oembed = null;
    if (is_null($wp_oembed)) {
        $wp_oembed = new WP_oEmbed();
    }
    return $wp_oembed;
}

WordPress Version: 4.3

/**
 * Returns the initialized {@link WP_oEmbed} object
 *
 * @since 2.9.0
 * @access private
 *
 * @staticvar WP_oEmbed $wp_oembed
 *
 * @return WP_oEmbed object.
 */
function _wp_oembed_get_object()
{
    static $wp_oembed = null;
    if (is_null($wp_oembed)) {
        $wp_oembed = new WP_oEmbed();
    }
    return $wp_oembed;
}

WordPress Version: 4.1

/**
 * Returns the initialized {@link WP_oEmbed} object
 *
 * @since 2.9.0
 * @access private
 *
 * @see WP_oEmbed
 *
 * @return WP_oEmbed object.
 */
function _wp_oembed_get_object()
{
    static $wp_oembed;
    if (is_null($wp_oembed)) {
        $wp_oembed = new WP_oEmbed();
    }
    return $wp_oembed;
}

WordPress Version: 3.7

/**
 * Returns the initialized {@link WP_oEmbed} object
 *
 * @since 2.9.0
 * @access private
 *
 * @see WP_oEmbed
 * @uses WP_oEmbed
 *
 * @return WP_oEmbed object.
 */
function _wp_oembed_get_object()
{
    static $wp_oembed;
    if (is_null($wp_oembed)) {
        $wp_oembed = new WP_oEmbed();
    }
    return $wp_oembed;
}