File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -755,24 +755,22 @@ public function manage_feedzy_import_columns( $column, $post_id ) {
755
755
* @access private
756
756
*/
757
757
private function get_last_run_details ( $ post_id ) {
758
- $ msg = '' ;
759
- $ import_errors = get_post_meta ( $ post_id , 'import_errors ' , true );
760
- $ status = array (
758
+ $ msg = '' ;
759
+ $ import_info = get_post_meta ( $ post_id , 'import_info ' , true );
760
+ $ status = array (
761
761
'total ' => '- ' ,
762
762
'items ' => '- ' ,
763
763
'duplicates ' => '- ' ,
764
764
'cumulative ' => '- ' ,
765
765
);
766
- $ import_info = false ;
767
- if ( $ import_errors ) {
768
- $ import_info = get_post_meta ( $ post_id , 'import_info ' , true );
769
- $ status = array (
766
+ if ( $ import_info ) {
767
+ $ status = array (
770
768
'total ' => 0 ,
771
769
'items ' => 0 ,
772
770
'duplicates ' => 0 ,
773
771
'cumulative ' => 0 ,
774
772
);
775
- $ status = $ this ->get_complete_import_status ( $ post_id );
773
+ $ status = $ this ->get_complete_import_status ( $ post_id );
776
774
}
777
775
778
776
// link to the posts listing for this job.
You can’t perform that action at this time.
0 commit comments