[wp-trac] [WordPress Trac] #14334: Editing other's post causing fatal error

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 17 04:32:34 UTC 2010

#14334: Editing other's post causing fatal error
 Reporter:  suhanto       |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:  3.0            
 Severity:  critical      |    Keywords:                 
 I've created a post type named 'Testimony'.

 I also setup capabilities for this post type:

    'edit_post' => 'edit_testimony',
    'edit_posts' => 'edit_testimonies',
    // others capabilities uses 'post' as default

 Then I add these two capabilities to admin and subscriber roles:

 Then I logged in as subscriber, seeing Testimony menu box containing menu
 - Testimony
 - Add New

 Then I click Testimony menu item to open my testimonies. But there is also
 an option to open All testimonies (not just mine). When I click All, I can
 see all testimonies written by others.

 Then I tried to edit a testimony belong to other, when I click Update
 button, there's an error saying:

 '''Fatal error: Cannot use object of type WP_Error as array in /www/myweb
 /wp-admin/includes/post.php on line 159'''

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

More information about the wp-trac mailing list