temporarily disable oembed
This commit is contained in:
parent
5b24050875
commit
9cd77b56ab
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@ function oembed_replacecb($matches){
|
||||||
|
|
||||||
|
|
||||||
function oembed_fetch_url($embedurl){
|
function oembed_fetch_url($embedurl){
|
||||||
|
return;
|
||||||
$r = q("SELECT v FROM `cache` WHERE k='%s'",
|
$r = q("SELECT v FROM `cache` WHERE k='%s'",
|
||||||
dbesc($embedurl));
|
dbesc($embedurl));
|
||||||
|
|
||||||
|
@ -17,6 +18,8 @@ function oembed_fetch_url($embedurl){
|
||||||
|
|
||||||
// try oembed autodiscovery
|
// try oembed autodiscovery
|
||||||
$html_text = fetch_url($embedurl);
|
$html_text = fetch_url($embedurl);
|
||||||
|
if(! $html_text)
|
||||||
|
return;
|
||||||
$dom = @DOMDocument::loadHTML($html_text);
|
$dom = @DOMDocument::loadHTML($html_text);
|
||||||
if ($dom){
|
if ($dom){
|
||||||
$xpath = new DOMXPath($dom);
|
$xpath = new DOMXPath($dom);
|
||||||
|
|
Loading…
Reference in a new issue