This PR keeps track of the failed media imports via transient named ocdi_importer_data_failed_attachment_imports and skip them on the next AJAX calls to prevent an infinite loop.
Motivation
Fixes #216.
Testing procedure
Create an export the has multiple attachments.
Edit the content xml and change the attachment URLs to anything that would be invalid.
Use this snippet
function ocdi_change_time_of_single_ajax_call() {
return 1;
}
add_filter( 'ocdi/time_for_one_ajax_call', 'ocdi_change_time_of_single_ajax_call' );
Perform the OCDI import.
The import should complete with failed media imports.
Description
This PR keeps track of the failed media imports via transient named
ocdi_importer_data_failed_attachment_imports
and skip them on the next AJAX calls to prevent an infinite loop.Motivation
Fixes #216.
Testing procedure
xml
and change the attachment URLs to anything that would be invalid.