From 287a440bab094f6ab638153cdb02b0f2d3d2c2be Mon Sep 17 00:00:00 2001 From: r-a-y Date: Thu, 24 Apr 2025 13:20:43 -0700 Subject: [PATCH] Fix fatal error with method_exists() call. --- xili-language/xili-includes/class-xili-language.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xili-language/xili-includes/class-xili-language.php b/xili-language/xili-includes/class-xili-language.php index e04c375..21883d9 100644 --- a/xili-language/xili-includes/class-xili-language.php +++ b/xili-language/xili-includes/class-xili-language.php @@ -2187,7 +2187,7 @@ public function xiliml_language_wp() { // to fixe event in WP 3.4 - 2.7.1 public function xili_test_lang_perma() { global $xl_permalinks_rules; - $this->lang_perma = ( class_exists( 'XL_Permalinks_Rules' ) && method_exists( $xl_permalinks_rules, 'insert_lang_tag_root' ) ); // 2.9.23 - must have instanciation in theme + $this->lang_perma = ( class_exists( 'XL_Permalinks_Rules' ) && ! empty( $xl_permalinks_rules ) && method_exists( $xl_permalinks_rules, 'insert_lang_tag_root' ) ); // 2.9.23 - must have instanciation in theme $this->lpr = '-'; // 2.16.6 }