Skip to content

Commit 6285077

Browse files
Fixed loading textdomain in show_error_and_die (#533)
* Fixed loading textdomain in * use helper --------- Co-authored-by: Till Krüss <[email protected]>
1 parent 00bd8a2 commit 6285077

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Fixed `wp_cache_flush_group` issue with Predis and replication connection
6+
- Fixed rare fatal error in `show_error_and_die()` (one more time)
67

78
## 2.5.2
89

includes/object-cache.php

+2
Original file line numberDiff line numberDiff line change
@@ -2971,6 +2971,8 @@ protected function show_error_and_die( Exception $exception ) {
29712971
add_filter( 'pre_determine_locale', function () {
29722972
return defined( 'WPLANG' ) ? WPLANG : 'en_US';
29732973
} );
2974+
2975+
add_filter( 'pre_get_language_files_from_path', '__return_empty_array' );
29742976
}
29752977

29762978
// Load custom Redis error template, if present.

0 commit comments

Comments
 (0)