Skip to content

Commit

Permalink
Merge pull request #3 from zedium/master
Browse files Browse the repository at this point in the history
Fix load_plugin_textdomain path
  • Loading branch information
mostafasoufi authored Dec 3, 2024
2 parents aeabea2 + 8f98120 commit 6628a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ), '/' ) ) ) );
}

/**
Expand Down

0 comments on commit 6628a28

Please sign in to comment.