Skip to content

Commit 5d2cb2a

Browse files
fix: import count
1 parent 50e8d5c commit 5d2cb2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

includes/admin/feedzy-rss-feeds-import.php

+3
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,9 @@ private function get_complete_import_status( $post_id ) {
10231023
if ( $items ) {
10241024
$status['cumulative'] = count( $items );
10251025
}
1026+
if ( ! empty( $status['duplicates'] ) ) {
1027+
$status['total'] = absint( $status['total'] - count( $status['duplicates'] ) );
1028+
}
10261029

10271030
return $status;
10281031
}

0 commit comments

Comments
 (0)