Skip to content

Commit

Permalink
Move timestamp update outside of loops
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham committed Aug 21, 2024
1 parent 2817809 commit eac8715
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@
$speaker_query->the_post();
$speaker_id = get_the_ID();
update_post_meta( $speaker_id, $sched_event_id, json_encode( $speaker ) );
update_option( 'lfevents_sync_sched_last_run', current_time( 'timestamp' ) );
}
wp_reset_postdata(); // Restore original Post Data.
}
}

update_option( 'lfevents_sync_sched_last_run', current_time( 'timestamp' ) );
wp_reset_postdata(); // Restore original Post Data.

0 comments on commit eac8715

Please sign in to comment.