PHP致命错误:无法在/home/samdonme/public/html/wp includes/embed.PHP:112)中重新声明\\u wp\\u oembed\\u get\\u object()(以前在/home/samdonme/public\\u html/wp includes/class oembed中声明)。php第692行
embed.php:112
function _wp_oembed_get_object() {
static $wp_oembed = null;
oembed.php on line 692
function _wp_oembed_get_object() {
static $wp_oembed = null;
if ( is_null( $wp_oembed ) ) {
$wp_oembed = new WP_oEmbed();
}
return $wp_oembed;
如上所述,我对嵌入有问题。php和类oembed。php。当我删除表单设置时。php
require( ABSPATH . WPINC . \'/class-oembed.php\' );
问题已修复。但我想学习如何修复“\\u wp\\u oembed\\u get\\u object()”问题