Aha! I commented out your save_post_lock
and save_post_unlock
filters and all is well.
Adding a blank return statement to those functions did not solve this issue either…
However, adding a return $post_id;
to those functions did solve that issue.
No return statements on filter callbacks leaves the filtered variable undefined.
Thoughts?