Make WordPress Core

Opened 22 years ago

Closed 22 years ago

#495 closed defect (bug) (fixed)

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

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

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 21 years ago.

Download all attachments as: .zip

Change History (3)

#2 @ryan
22 years ago

  • Owner changed from anonymous to rboren
  • Resolution 1020
  • Status newclosed
Note: See TracTickets for help on using tickets.