Opened 4 months ago
#37232 new defect (bug)
Bulk action undefind on admin edit.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 4.5.3 |
| Component: | Posts, Post Types | Keywords: | |
| Focuses: | administration | Cc: |
Description
Hey,
I am add a new user role.
He can edit only cpt spcific.
I think is because he not have cap to delete_posts and edit_posts (only edit_cpts) so I get php notice:
Notice: Undefined property: stdClass::$delete_posts in wp-admin/includes/class-wp-posts-list-table.php on line 403
Call Stack
# Time Memory Function Location
1 0.0014 371160 {main}( ) ...\edit.php:0
2 2.1659 85859776 WP_List_Table->display( ) ...\edit.php:347
3 2.1659 85859968 WP_List_Table->display_tablenav( ) ...\class-wp-list-table.php:1126
4 2.1661 85860232 WP_List_Table->bulk_actions( ) ...\class-wp-list-table.php:1183
5 2.1661 85860440 WP_Posts_List_Table->get_bulk_actions( ) ...\class-wp-list-table.php:439
It's start on this code line (wp-admin/edit.php:347):
<?php $wp_list_table->display(); ?>
Thank you!
Note: See
TracTickets for help on using
tickets.