WIP: The error page shown by custom authentication pages is not hidden by maintenance mode

The error page that supersedes WordPress’s default authentication pages when setting custom authentication pages does not follow maintenance mode settings, resulting in the full error page appearing as if no maintenance mode were enabled, allowing access to the header and footer. Since the standard 404 page isn’t displayed during maintenance mode, this behavior is likely a bug.

Steps to reproduce:

  1. Set up a custom login page with “WordPress authentication page access” configured to “Error page”.

  2. Activate maintenance mode. (either Mode setting, and the Template can be the default)

  3. Access /wp-login.php without an authenticated session. The site will show the 404 error page as configured through the custom authentication page with the page header and footer, ignoring the maintenance mode.

Hi Milo,
Thanks so much for your report!

I reproduced the issue and added it to our bug tracker.
We’ll update this thread once it’s fixed.

Best regards,
timmse