Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 54d46c8

Browse files
committed
Fix bug: Meta is not being saved
1 parent f2111d8 commit 54d46c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

redux-core/class-redux-core.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ private function init() {
194194
if ( ! empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
195195
self::$server['HTTP_USER_AGENT'] = sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) );
196196
}
197+
if ( ! empty( $_SERVER['HTTP_HOST']) ) {
198+
self::$server['HTTP_HOST'] = sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) );
199+
}
200+
if ( ! empty( $_SERVER['REQUEST_URI']) ) {
201+
self::$server['REQUEST_URI'] = sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) );
202+
}
197203
// phpcs:enable
198204

199205
self::$dir = trailingslashit( wp_normalize_path( dirname( realpath( __FILE__ ) ) ) );

0 commit comments

Comments
 (0)