[wp-trac] [WordPress Trac] #18526: nav_menu.php in wp-admin\includes Error

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 26 20:59:43 UTC 2011


#18526: nav_menu.php in wp-admin\includes Error
--------------------------+------------------------------
 Reporter:  wpsmith       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by wpsmith):

 Replying to [ticket:18526 wpsmith]:
 > Notice: Trying to get property of non-object
 >
 > This occurs at line 59, $original_title = $original_object->post_title;
 >
 > Simply changing this to
 {{{
 $original_title = isset( $original_object->post_title ) ?
 $original_object->post_title : '';
 }}}
  resolves it.

 The same error appears on nav_menu.php in wp-includes line 568. Same
 solution will resolve it.

 {{{
 $original_title = isset( $original_object->post_title ) ?
 $original_object->post_title : '';
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18526#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list