我在wordpress中遇到视频短码的问题,并决定创建一个php脚本来测试wp_oembed_get函数,并确保一切正常,但是当我打电话时:
$embed_code = wp_oembed_get('http://vimeo.com/XXXX', array('width'=>400));
我得到了这个:
Fatal error: Call to a member function get() on a non-object in /var/www/html/xxxxx/wp-includes/cache.php on line 113
有什么想法吗?