Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#495 closed defect (bug) (fixed)

wp-commentsrss2.php produces invalid xml, because of a php notice error

Reported by: nbachiyski's profile nbachiyski Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: major Version:
Component: General Keywords:
Focuses: Cc:

Description

In case either there is no initialized $feed variable before including wp-commmentsrss2.php or the script is invoked direclty - an E_NOTICE error is generated, because $feed is accessed before it has been checked with isset().

If E_NOTICE is among the error_reporting levels and display_errors is on - the script procuces invalid xml file and most aggregators reject it.

Attachments (1)

wp-commentsrss2-php-patch-E_NOTICE.diff (266 bytes) - added by nbachiyski 19 years ago.

Download all attachments as: .zip

Change History (3)

#2 @ryan
20 years ago

  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.