Opened 13 years ago
Closed 13 years ago
#23744 closed defect (bug) (fixed)
PHP notice on a custom post type archive with default permalinks enabled
| Reported by: | ericlewis | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Warnings/Notices | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Notice: Undefined index: feeds in /Users/ericlewis/Sites/wordpress-trunk/wp-includes/link-template.php on line 871
Looks like something to do with the way the post type object is set up by default with default permalinks enabled.
Attachments (2)
Change History (5)
#1
@
13 years ago
- Component Feeds → Warnings/Notices
- Milestone Awaiting Review → 3.6
- Version trunk → 3.1
#2
@
13 years ago
23744.2.patch reorders the conditions in the same way as in get_post_type_archive_link():
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/link-template.php#L840
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Change boolean check to empty()