[wp-trac] [WordPress Trac] #18651: Notice: Undefined index: xxxx in C:\temp\dev\htdocs\wp330\wp-includes\post.php on line 3170

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 13 15:27:05 UTC 2011


#18651: Notice: Undefined index: xxxx in C:\temp\dev\htdocs\wp330\wp-
includes\post.php on line 3170
--------------------------+--------------------------------------
 Reporter:  EmmanuelG     |      Owner:  blog@…
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.3
 Severity:  normal        |   Keywords:
--------------------------+--------------------------------------
 When displaying an attachment page, the message appears.
 xxxx is the ID of the parent post of the attachment

 line 3170
 {{{
 #!php
 if ( null === ( $parent_page = $pages[ $page->post_parent ] ) )
 }}}

 Work-around:
 {{{
 #!php
 if ( !isset($pages[ $page->post_parent ]) ||
 null === ( $parent_page = $pages[ $page->post_parent ] ) )
 }}}

 Build version 18864.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18651>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list