From e2206d3de332c9c613f4f0e3bed9a992305d26be Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 26 May 2017 18:52:27 -0400 Subject: [PATCH] Avoid localizing formatted home redirect date Must be deterministic as Y-m-d --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 11dc27ac7..97e3ebe81 100644 --- a/functions.php +++ b/functions.php @@ -272,7 +272,7 @@ function dones_add_custom_query_vars( $query_vars ) { function dones_home_redirect() { global $wp; if ( home_url() === home_url( $wp->request ) ) { - wp_safe_redirect( home_url( '/date/' . date_i18n( 'Y-m-d' ) ) ); + wp_safe_redirect( home_url( '/date/' . date( 'Y-m-d' ) ) ); exit; } }