Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#57102 closed defect (bug) (fixed)

Typo in MagpieRSS (deprecated)

Reported by: nithins53 Owned by: audrasjb
Priority: lowest Milestone: 6.2
Component: Feeds Version:
Severity: trivial Keywords: has-patch commit
Cc: Focuses:

Description

In wp-includes/rss.php, on line 198, 341 and 503 we can see typo errors.

Line 198- containging > containing

Line 341 descripton> description (typo in array key)

Line 503 habbit>habit

Change History (8)

This ticket was mentioned in PR #3617 on WordPress/wordpress-develop by @anantajitjg.


4 years ago
#1

  • Keywords has-patch added; needs-patch removed

#2 follow-up: @desrosj
4 years ago

  • Component GeneralFeeds
  • Keywords commit added
  • Milestone Awaiting Review6.2
  • Priority normallowest
  • Severity normaltrivial

The benefit of any updates to rss.php is becoming extremely low.

One thing to note is that changing the instance of $this->channel['descripton'] could result in unexpected behavior if someone using the class is checking for that index. While correcting the key's spelling would fix this bug, but would break those implementations.

Stepping back, I guess these are fine to make, but I'd honestly like to look at potentially being able to no-op this class entirely. MagpieRSS has been deprecated since WordPress 3.0, and a search of the plugin directory shows almost no real usage of the class (almost all of the matches are false positives or attempts to identify crawlers, which MagpieRSS is considered). I've opened #57107 to discuss this.

#3 in reply to: ↑ 2 @anantajitjg
4 years ago

Replying to desrosj:

The benefit of any updates to rss.php is becoming extremely low.

One thing to note is that changing the instance of $this->channel['descripton'] could result in unexpected behavior if someone using the class is checking for that index. While correcting the key's spelling would fix this bug, but would break those implementations.

Stepping back, I guess these are fine to make, but I'd honestly like to look at potentially being able to no-op this class entirely.

Completely agree with this. Looking forward to more updates from #57107.

#4 @johnbillion
4 years ago

  • Version 6.1

This ticket was mentioned in Slack in #core by costdev. View the logs.


4 years ago

#6 @audrasjb
4 years ago

  • Owner set to audrasjb
  • Status newaccepted

Self assigning for commit.

#7 @audrasjb
4 years ago

  • Resolutionfixed
  • Status acceptedclosed

In 55336:

Feeds: Fix various typos in MagpieRSS.

Props nithins53, desrosj, anantajitjg, mukesh27.
Fixes #57102.

Note: See TracTickets for help on using tickets.