Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 4de1532

Browse files
committed
fix disable language
1 parent a8f25f0 commit 4de1532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/class-wpm-setup.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function get_user_language() {
208208
*/
209209
public function set_user_language() {
210210

211-
if ( ! is_admin() || ! defined( 'REST_REQUEST' ) ) {
211+
if ( ! is_admin() && ! defined( 'REST_REQUEST' ) ) {
212212

213213
$path = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH );
214214

0 commit comments

Comments
 (0)