From 25bb0d62675a5767b00e4671620ffa07325f3a33 Mon Sep 17 00:00:00 2001
From: Andrei Mondoc <andreimondoc@gmail.com>
Date: Fri, 23 Aug 2019 11:53:03 +0100
Subject: [PATCH] always return $result!

Signed-off-by: Kevin Cristiano <kcristiano@kcristiano.com>
---
 wp-rest/Plugin.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wp-rest/Plugin.php b/wp-rest/Plugin.php
index 5f634a86a8..4038a56b1b 100644
--- a/wp-rest/Plugin.php
+++ b/wp-rest/Plugin.php
@@ -177,7 +177,7 @@ class Plugin {
 	 */
 	public function maybe_reset_wp_timezone( $result, $server, $request ) {
 
-		if ( $request->get_route() != '/civicrm/v3/rest' ) return;
+		if ( $request->get_route() != '/civicrm/v3/rest' ) return $result;
 
 		$timezones = apply_filters( 'civi_wp_rest/plugin/timezones', null );
 
-- 
GitLab