Feeds: Fix various typos in MagpieRSS.
Props nithins53, desrosj, anantajitjg, mukesh27. Fixes #57102. Built from https://develop.svn.wordpress.org/trunk@55336 git-svn-id: http://core.svn.wordpress.org/trunk@54869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f1e01d188c
commit
592e136b67
|
@ -195,7 +195,7 @@ class MagpieRSS {
|
||||||
array_unshift( $this->stack, $el );
|
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'
|
// Magpie treats link elements of type rel='alternate'
|
||||||
// as being equivalent to RSS's simple link element.
|
// as being equivalent to RSS's simple link element.
|
||||||
//
|
//
|
||||||
|
@ -338,7 +338,7 @@ class MagpieRSS {
|
||||||
function normalize () {
|
function normalize () {
|
||||||
// if atom populate rss fields
|
// if atom populate rss fields
|
||||||
if ( $this->is_atom() ) {
|
if ( $this->is_atom() ) {
|
||||||
$this->channel['descripton'] = $this->channel['tagline'];
|
$this->channel['description'] = $this->channel['tagline'];
|
||||||
for ( $i = 0; $i < count($this->items); $i++) {
|
for ( $i = 0; $i < count($this->items); $i++) {
|
||||||
$item = $this->items[$i];
|
$item = $this->items[$i];
|
||||||
if ( isset($item['summary']) )
|
if ( isset($item['summary']) )
|
||||||
|
@ -500,7 +500,7 @@ function fetch_rss ($url) {
|
||||||
else {
|
else {
|
||||||
$errormsg = "Failed to fetch $url. ";
|
$errormsg = "Failed to fetch $url. ";
|
||||||
if ( $resp->error ) {
|
if ( $resp->error ) {
|
||||||
# compensate for Snoopy's annoying habbit to tacking
|
# compensate for Snoopy's annoying habit to tacking
|
||||||
# on '\n'
|
# on '\n'
|
||||||
$http_error = substr($resp->error, 0, -2);
|
$http_error = substr($resp->error, 0, -2);
|
||||||
$errormsg .= "(HTTP Error: $http_error)";
|
$errormsg .= "(HTTP Error: $http_error)";
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.2-beta1-55335';
|
$wp_version = '6.2-beta1-55336';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue