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)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)