mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 15:41:08 +01:00
Feeds: Fix various typos in MagpieRSS.
Props nithins53, desrosj, anantajitjg, mukesh27. Fixes #57102. git-svn-id: https://develop.svn.wordpress.org/trunk@55336 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2730dfa902
commit
ba508bc74f
@ -195,7 +195,7 @@ class MagpieRSS {
|
||||
array_unshift( $this->stack, $el );
|
||||
}
|
||||
|
||||
// Atom support many links per containging element.
|
||||
// Atom support many links per containing element.
|
||||
// Magpie treats link elements of type rel='alternate'
|
||||
// as being equivalent to RSS's simple link element.
|
||||
//
|
||||
@ -338,7 +338,7 @@ class MagpieRSS {
|
||||
function normalize () {
|
||||
// if atom populate rss fields
|
||||
if ( $this->is_atom() ) {
|
||||
$this->channel['descripton'] = $this->channel['tagline'];
|
||||
$this->channel['description'] = $this->channel['tagline'];
|
||||
for ( $i = 0; $i < count($this->items); $i++) {
|
||||
$item = $this->items[$i];
|
||||
if ( isset($item['summary']) )
|
||||
@ -500,7 +500,7 @@ function fetch_rss ($url) {
|
||||
else {
|
||||
$errormsg = "Failed to fetch $url. ";
|
||||
if ( $resp->error ) {
|
||||
# compensate for Snoopy's annoying habbit to tacking
|
||||
# compensate for Snoopy's annoying habit to tacking
|
||||
# on '\n'
|
||||
$http_error = substr($resp->error, 0, -2);
|
||||
$errormsg .= "(HTTP Error: $http_error)";
|
||||
|
Loading…
x
Reference in New Issue
Block a user