Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#23744 closed defect (bug) (fixed)

PHP notice on a custom post type archive with default permalinks enabled

Reported by: ericlewis's profile ericlewis Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.1
Component: Warnings/Notices Keywords: has-patch
Focuses: Cc:

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)

23744.patch (589 bytes) - added by ericlewis 12 years ago.
Change boolean check to empty()
23744.2.patch (721 bytes) - added by SergeyBiryukov 12 years ago.

Download all attachments as: .zip

Change History (5)

@ericlewis
12 years ago

Change boolean check to empty()

#1 @SergeyBiryukov
12 years ago

  • Component changed from Feeds to Warnings/Notices
  • Milestone changed from Awaiting Review to 3.6
  • Version changed from trunk to 3.1

#3 @SergeyBiryukov
12 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 23660:

Avoid an undefined index notice in get_post_type_archive_feed_link(). props ericlewis. fixes #23744.

Note: See TracTickets for help on using tickets.