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 | Owned by: | 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)
Change History (3)
Note: See
TracTickets for help on using
tickets.