Skip to content

Commit

Permalink
change basename to default
Browse files Browse the repository at this point in the history
  • Loading branch information
abouterf committed Jan 13, 2025
1 parent 54aad23 commit 460899a
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 460899a

Please sign in to comment.