wp_update_post does not change post status from draft to publish, returns 1
I’m writing a post approval utility for the front end, because we don’t want our editor to be able to access the admin dashboard. There are questions on Stack nearly identical to what I’m trying to accomplish, but that guy’s problem has to do with the infinite loop issue. Otherwise, he claims his code works: