Yes it worked just fine until a couple of days ago. No issues. Your plugin works on files that are not attached through a form upload.
It looks like its failing on a permission check or in getting the IDS?
Its failing somewhere in this process:
if ( empty( $permissions_errors ) and $valid_file_ids ) {
// get posts and check they are attachments
$files_to_download = get_posts( array(
‘posts_per_page’ => -1,
‘post_type’ => ‘attachment’,
‘post__in’ => $_POST[‘attmtIds’],
‘ignore_sticky_posts’ => true
) );
if ( empty( $files_to_download ) ) {
$valid_file_ids = false;
}
}
if ( ! $valid_file_ids ) {
$permissions_errors[] = __( ‘No valid files selected for download.’, ‘st-bulk-download’ );
} else {
// check permissions
foreach ( $files_to_download as $file_to_download ) {
if ( current_user_can( ‘edit_posts’, $file_to_download->ID ) ) {
$permitted_files[] = $file_to_download;
}
}
if ( empty( $permitted_files ) ) {
$permissions_errors[] = __( ‘You do not have permission to download any of the selected files.’, ‘st-bulk-download’ );
}
}
I havn’t changed permission or anything.
If your willing to look I can give you access to my system, but it will require a VPN connection.