Edit File by line
/home/barbar84/www/wp-inclu.../SimplePi...
File: Source.php
}
[500] Fix | Delete
[501] Fix | Delete
return null;
[502] Fix | Delete
}
[503] Fix | Delete
[504] Fix | Delete
public function get_language()
[505] Fix | Delete
{
[506] Fix | Delete
if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'language'))
[507] Fix | Delete
{
[508] Fix | Delete
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[509] Fix | Delete
}
[510] Fix | Delete
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'language'))
[511] Fix | Delete
{
[512] Fix | Delete
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[513] Fix | Delete
}
[514] Fix | Delete
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'language'))
[515] Fix | Delete
{
[516] Fix | Delete
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[517] Fix | Delete
}
[518] Fix | Delete
elseif (isset($this->data['xml_lang']))
[519] Fix | Delete
{
[520] Fix | Delete
return $this->sanitize($this->data['xml_lang'], SIMPLEPIE_CONSTRUCT_TEXT);
[521] Fix | Delete
}
[522] Fix | Delete
[523] Fix | Delete
return null;
[524] Fix | Delete
}
[525] Fix | Delete
[526] Fix | Delete
public function get_latitude()
[527] Fix | Delete
{
[528] Fix | Delete
if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
[529] Fix | Delete
{
[530] Fix | Delete
return (float) $return[0]['data'];
[531] Fix | Delete
}
[532] Fix | Delete
elseif (($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
[533] Fix | Delete
{
[534] Fix | Delete
return (float) $match[1];
[535] Fix | Delete
}
[536] Fix | Delete
[537] Fix | Delete
return null;
[538] Fix | Delete
}
[539] Fix | Delete
[540] Fix | Delete
public function get_longitude()
[541] Fix | Delete
{
[542] Fix | Delete
if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
[543] Fix | Delete
{
[544] Fix | Delete
return (float) $return[0]['data'];
[545] Fix | Delete
}
[546] Fix | Delete
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon'))
[547] Fix | Delete
{
[548] Fix | Delete
return (float) $return[0]['data'];
[549] Fix | Delete
}
[550] Fix | Delete
elseif (($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
[551] Fix | Delete
{
[552] Fix | Delete
return (float) $match[2];
[553] Fix | Delete
}
[554] Fix | Delete
[555] Fix | Delete
return null;
[556] Fix | Delete
}
[557] Fix | Delete
[558] Fix | Delete
public function get_image_url()
[559] Fix | Delete
{
[560] Fix | Delete
if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'image'))
[561] Fix | Delete
{
[562] Fix | Delete
return $this->sanitize($return[0]['attribs']['']['href'], SIMPLEPIE_CONSTRUCT_IRI);
[563] Fix | Delete
}
[564] Fix | Delete
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'logo'))
[565] Fix | Delete
{
[566] Fix | Delete
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0]));
[567] Fix | Delete
}
[568] Fix | Delete
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'icon'))
[569] Fix | Delete
{
[570] Fix | Delete
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0]));
[571] Fix | Delete
}
[572] Fix | Delete
[573] Fix | Delete
return null;
[574] Fix | Delete
}
[575] Fix | Delete
}
[576] Fix | Delete
[577] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function