Site icon Hip-Hop Website Design and Development

class-oembed Error

PHP Deadly error: Can’t redeclare _wp_oembed_get_object() (beforehand declared in /residence/samdonme/public_html/wp-includes/embed.php:112) in /residence/samdonme/public_html/wp-includes/class-oembed.php on line 692

embed.php:112

perform _wp_oembed_get_object() {
    static $wp_oembed = null;

oembed.php on line 692

perform _wp_oembed_get_object() {
    static $wp_oembed = null;

    if ( is_null( $wp_oembed ) ) {
        $wp_oembed = new WP_oEmbed();
    }
    return $wp_oembed;

As you see above, I’m have downside with the embed.php and class-oembed.php.
Once I delete type setting.php

require( ABSPATH . WPINC . '/class-oembed.php' );

downside is fastened. However I need to learn the way can I repair “_wp_oembed_get_object()” downside