WordPress Password Protected Pages returning 404 error fix.
For years my companies website has used WordPress’s password protection function to hide posts that we wanted people to review before going live. I needed a solution that affected the main loop, otherwise I could just use WP_Query arguments. So