WordPress.org

Make WordPress Core

Changeset 22555


Ignore:
Timestamp:
11/13/12 00:49:15 (17 months ago)
Author:
nacin
Message:

SimplePie: Ensure the DOMNode::getLineNo() method exists. props rmccue. fixes #22425.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/SimplePie/Locator.php

    r22366 r22555  
    278278                if ($parsed['scheme'] === '' || preg_match('/^(http(s)|feed)?$/i', $parsed['scheme'])) 
    279279                { 
    280                     if ($this->base_location < $link->getLineNo()) 
     280                    if (method_exists($link, 'getLineNo') && $this->base_location < $link->getLineNo()) 
    281281                    { 
    282282                        $href = $this->registry->call('Misc', 'absolutize_url', array(trim($link->getAttribute('href')), $this->base)); 
Note: See TracChangeset for help on using the changeset viewer.