@@ -755,15 +755,15 @@ 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
- $ last = get_post_meta ( $ post_id , 'last_run ' , 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
- if ( $ last ) {
766
+ if ( $ import_info ) {
767
767
$ status = array (
768
768
'total ' => 0 ,
769
769
'items ' => 0 ,
@@ -882,11 +882,11 @@ private function get_last_run_details( $post_id ) {
882
882
__ ( 'Items that were imported across all runs ' , 'feedzy-rss-feeds ' ),
883
883
$ status ['cumulative ' ],
884
884
// fifth cell
885
- empty ( $ last ) ? '' : ( ! empty ( $ errors ) ? 'feedzy-has-popup import-error ' : 'import-success ' ),
886
- empty ( $ last ) ? '-1 ' : ( ! empty ( $ errors ) ? 0 : 1 ),
885
+ empty ( $ import_info ) ? '' : ( ! empty ( $ errors ) ? 'feedzy-has-popup import-error ' : 'import-success ' ),
886
+ empty ( $ import_info ) ? '-1 ' : ( ! empty ( $ errors ) ? 0 : 1 ),
887
887
$ post_id ,
888
888
__ ( 'View the errors ' , 'feedzy-rss-feeds ' ),
889
- empty ( $ last ) ? '- ' : ( ! empty ( $ errors ) ? '<i class="dashicons dashicons-warning"></i> ' : '<i class="dashicons dashicons-yes-alt"></i> ' ),
889
+ empty ( $ import_info ) ? '- ' : ( ! empty ( $ errors ) ? '<i class="dashicons dashicons-warning"></i> ' : '<i class="dashicons dashicons-yes-alt"></i> ' ),
890
890
// second row
891
891
__ ( 'Found ' , 'feedzy-rss-feeds ' ),
892
892
__ ( 'Duplicates ' , 'feedzy-rss-feeds ' ),
@@ -2709,13 +2709,13 @@ private function purge_data() {
2709
2709
wp_delete_post ( $ post_id , true );
2710
2710
}
2711
2711
}
2712
+ delete_post_meta ( $ id , 'import_errors ' );
2713
+ delete_post_meta ( $ id , 'import_info ' );
2714
+ delete_post_meta ( $ id , 'imported_items ' );
2715
+ delete_post_meta ( $ id , 'imported_items_count ' );
2712
2716
}
2713
2717
2714
2718
delete_post_meta ( $ id , 'imported_items_hash ' );
2715
- delete_post_meta ( $ id , 'imported_items ' );
2716
- delete_post_meta ( $ id , 'imported_items_count ' );
2717
- delete_post_meta ( $ id , 'import_errors ' );
2718
- delete_post_meta ( $ id , 'import_info ' );
2719
2719
delete_post_meta ( $ id , 'last_run ' );
2720
2720
wp_die ();
2721
2721
}
0 commit comments