Make WordPress Core

Ticket #33172: 33172.patch

File 33172.patch, 565 bytes (added by CreativeJuiz, 10 years ago)

Patch for class-wp-posts-list-table.php

  • class-wp-posts-list-table.php

     
    288288                        $actions['edit'] = __( 'Edit' );
    289289                }
    290290
    291                 if ( current_user_can( $post_type_obj->cap->delete_posts ) ) {
     291                if ( isset( $post_type_obj->cap->delete_posts ) && current_user_can( $post_type_obj->cap->delete_posts ) ) {
    292292                        if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) {
    293293                                $actions['delete'] = __( 'Delete Permanently' );
    294294                        } else {