[wp-trac] [WordPress Trac] #31199: Potential reference to unset variable in get_bulk_actions (WP_Posts_List_Table)

WordPress Trac noreply at wordpress.org
Mon Feb 2 15:13:22 UTC 2015


#31199: Potential reference to unset variable in get_bulk_actions
(WP_Posts_List_Table)
----------------------------+------------------------------
 Reporter:  sgrant          |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+------------------------------
Changes (by Fab1en):

 * keywords:   => has-patch


Comment:

 Hi sgrant

 Could you please provide a the way you have triggered this bug, so that I
 can reproduce it ?

 And I think you made a mistake in your patch :
 `$post_type_obj->delete_posts` will never exist, its
 `$post_type_obj->cap->delete_posts` that has to be checked.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31199#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list