Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#18651 closed defect (bug) (duplicate)

Notice: Undefined index: xxxx in C:\temp\dev\htdocs\wp330\wp-includes\post.php on line 3170

Reported by: emmanuelg's profile EmmanuelG Owned by: blogemmanuelgeorjoncom's profile blog@…
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: General Keywords:
Focuses: Cc:

Description

When displaying an attachment page, the message appears.
xxxx is the ID of the parent post of the attachment

line 3170

if ( null === ( $parent_page = $pages[ $page->post_parent ] ) )

Work-around:

if ( !isset($pages[ $page->post_parent ]) || 
null === ( $parent_page = $pages[ $page->post_parent ] ) )

Build version 18864.

Change History (1)

#1 @ocean90
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.