From 8f981206051374f1b9a367a9d27a2f11ddcd3b3a Mon Sep 17 00:00:00 2001 From: Zedium Date: Mon, 2 Dec 2024 12:09:55 +0330 Subject: [PATCH] Fix load_plugin_textdomain path --- src/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index 5c9f5f6..4d3f9c1 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -263,7 +263,7 @@ protected function setConstants() { * @return void */ public function loadPluginTextDomain() { - load_plugin_textdomain( $this->getHeader( 'text_domain' ), false, $this->basePath( ltrim( $this->getHeader( 'domain_path' ), '/' ) ) ); + load_plugin_textdomain( $this->getHeader( 'text_domain' ), false, plugin_basename( $this->basePath( ltrim( $this->getHeader( 'domain_path' ), '/' ) ) ) ); } /**