Skip to content

Commit

Permalink
adds check for existing bulk history page arg to bulk import
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacon36 committed Apr 8, 2022
1 parent bf49154 commit f9b758e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Otis_Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ private function _import_history( $assoc_args = [] ) {
if ( $history_page_count > 1 ) {
if ( !$history_bulk ) {
update_option(WP_OTIS_BULK_HISTORY_ACTIVE, true);
$assoc_args['bulk-history-page'] = 1;
$assoc_args['bulk-history-page'] = isset($assoc_args['bulk-history-page']) && !empty($assoc_args['bulk-history-page']) ? $assoc_args['bulk-history-page'] : 1;
$history_bulk = true;
$logger_date = wp_otis_get_logger_modified_date_string($assoc_args);
$this->logger->log("OTIS bulk history import detected: " . $history_total . " updates. " . $logger_date);
Expand Down

0 comments on commit f9b758e

Please sign in to comment.