[wp-trac] [WordPress Trac] #49081: Undefined index

WordPress Trac noreply at wordpress.org
Wed Dec 25 21:09:01 UTC 2019


#49081: Undefined index
-------------------------------+-----------------------------
 Reporter:  aleapp             |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  5.3.2
 Severity:  minor              |   Keywords:
  Focuses:  administration     |
-------------------------------+-----------------------------
 When on custom post list page I have this notice

 Undefined property: stdClass::$delete_posts in /wp-admin/includes/class-
 wp-posts-list-table.php on line 416

 I have custom post type 'shop' and the current user does not have
 'delete_posts' capability but instead it has 'delete_shops' custom
 capability.

 You may want to add isset check.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49081>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list