From ba508bc74f7fcba44ff1c1c76cdfd69f7cb61508 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 14 Feb 2023 16:04:41 +0000 Subject: [PATCH] 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 --- src/wp-includes/rss.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/rss.php b/src/wp-includes/rss.php index c55417728a..455b6ecbaf 100644 --- a/src/wp-includes/rss.php +++ b/src/wp-includes/rss.php @@ -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)";