WordPress Publish Date Reverts When Click Save After Reset

I just ran into an odd issue. I’m trying to fix posts that were once published and then removed and others that were scheduled but missed the scheduled post date for one reason or another.

What would happen is each time I click Reset then save the post date would revert back to the old date.

I found 2 fixes for this.

First, if I changed the date to a future date, schedule the post, and then reset it I could get it to go back to a draft as I wanted.

Animation showing how to fix the issue.

Second, I could disable Edit Flow (Link to WordPress.org: Edit Flow) and this also fixed the issue. But I really like Edit Flow and use it to help manage content and writers.

Fix: Warning: Parameter 2 to wp_hide_post_Public::query_posts_join() expected to be a reference, value given in /srv/users/x/apps/x/public/wp-includes/class-wp-hook.php on line 286

Fix: Warning: Parameter 2 to wp_hide_post_Public::query_posts_join() expected to be a reference, value given in /srv/users/x/apps/x/public/wp-includes/class-wp-hook.php on line 286

I have had an error on some of my WordPress sites for a long time that looks like this: “Warning: Parameter 2 to wp_hide_post_Public::query_posts_join() expected to be a reference, value given in /srv/users/x/apps/x/public/wp-includes/class-wp-hook.php on line 286″ It too me a while to figure it out but the error was caused by WP Hide Post plugin and PHP 7.1+ I was able to fix the error but I also decided not to use the plugin any longer so I just removed it from the sites that I had installed it on.   If you are interested in fixing this error yourself check it out here: https://www.nafzinger.com/2017/11/03/solved-warning-parameter-2-expected-reference/   PS. This doesn’t count toward September Challenge 😉