← All changes
|
json-endpoints/class.wpcom-json-api-site-settings-endpoint.php
+0
-1
16.3-a.3
→
16.3-a.5
View file →
| @@ -647,9 +647,8 @@ | ||
| 647 | 647 | |
| 648 | 648 | if ( function_exists( 'wpcom_switch_to_user_locale' ) ) { |
| 649 | 649 | // Compare the locales before/after switch to decide if we should switch back |
| 650 | 650 | $locale_before = determine_locale(); |
| 651 | - // @phan-suppress-next-line PhanUndeclaredFunction -- Checked above. See also https://github.com/phan/phan/issues/1204. | |
| 652 | 651 | wpcom_switch_to_user_locale(); |
| 653 | 652 | $switched_locale = determine_locale() !== $locale_before; |
| 654 | 653 | } |
| 655 | 654 | |