SimplePie: Ensure the DOMNode::getLineNo() method exists. props rmccue. fixes #22425.
git-svn-id: http://core.svn.wordpress.org/trunk@22555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b5ab7bbbc9
commit
6f44d7c5bd
|
@ -277,7 +277,7 @@ class SimplePie_Locator
|
|||
$parsed = $this->registry->call('Misc', 'parse_url', array($href));
|
||||
if ($parsed['scheme'] === '' || preg_match('/^(http(s)|feed)?$/i', $parsed['scheme']))
|
||||
{
|
||||
if ($this->base_location < $link->getLineNo())
|
||||
if (method_exists($link, 'getLineNo') && $this->base_location < $link->getLineNo())
|
||||
{
|
||||
$href = $this->registry->call('Misc', 'absolutize_url', array(trim($link->getAttribute('href')), $this->base));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue