From 6f44d7c5bd877ebb422015a6194724c426273927 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 13 Nov 2012 00:49:15 +0000 Subject: [PATCH] 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 --- wp-includes/SimplePie/Locator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/SimplePie/Locator.php b/wp-includes/SimplePie/Locator.php index 57e910c22b..da89514685 100755 --- a/wp-includes/SimplePie/Locator.php +++ b/wp-includes/SimplePie/Locator.php @@ -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)); }