From 8189c0655bcd9398dc056819a6641cbe403554a9 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 13 May 2026 12:17:32 +0300 Subject: [PATCH] Fix `/login` 404 status code When enabling the SSO custom login page, although the page loads correctly, it technically returns a 404 status code. The same is true of the privacy and terms pages. This resolves that by setting a 200 status for those pages. --- dt-login/login-template.php | 1 + dt-login/pages/base.php | 1 + 2 files changed, 2 insertions(+) diff --git a/dt-login/login-template.php b/dt-login/login-template.php index 3759bbebf6..84a8b8f3d1 100644 --- a/dt-login/login-template.php +++ b/dt-login/login-template.php @@ -22,6 +22,7 @@ // Fix for page title global $wp_query; $wp_query->is_404 = false; +status_header( 200 ); diff --git a/dt-login/pages/base.php b/dt-login/pages/base.php index 7d81430c32..c57ee3c9c0 100644 --- a/dt-login/pages/base.php +++ b/dt-login/pages/base.php @@ -15,6 +15,7 @@ public function __construct() { } public function theme_redirect() { + status_header( 200 ); $path = get_theme_file_path( 'template-blank.php' ); include( $path ); die();