Ticket #30991: 30991-check_for_optional_variable_set_before_using.diff
File 30991-check_for_optional_variable_set_before_using.diff, 629 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-posts-list-table.php
208 208 $actions['edit'] = __( 'Edit' ); 209 209 } 210 210 211 if ( current_user_can( $post_type_obj->cap->delete_posts ) ) {211 if ( isset($post_type_obj->cap->delete_posts) && current_user_can( $post_type_obj->cap->delete_posts ) ) { 212 212 if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) { 213 213 $actions['delete'] = __( 'Delete Permanently' ); 214 214 } else {