-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from Tmeister/php74
- Loading branch information
Showing
16 changed files
with
1,123 additions
and
802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
.vscode | ||
.DS_Store | ||
.DS_Store | ||
includes/vendor/bin | ||
includes/vendor/dealerdirect | ||
includes/vendor/squizlabs | ||
includes/vendor/wp-coding-standards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,40 +20,38 @@ | |
* | ||
* @author Enrique Chavez <[email protected]> | ||
*/ | ||
class Jwt_Auth_i18n | ||
{ | ||
/** | ||
* The domain specified for this plugin. | ||
* | ||
* @since 1.0.0 | ||
* | ||
* @var string The domain identifier for this plugin. | ||
*/ | ||
private $domain; | ||
class Jwt_Auth_i18n { | ||
/** | ||
* The domain specified for this plugin. | ||
* | ||
* @since 1.0.0 | ||
* | ||
* @var string The domain identifier for this plugin. | ||
*/ | ||
private string $domain; | ||
|
||
/** | ||
* Load the plugin text domain for translation. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public function load_plugin_textdomain() | ||
{ | ||
load_plugin_textdomain( | ||
$this->domain, | ||
false, | ||
dirname(dirname(plugin_basename(__FILE__))).'/languages/' | ||
); | ||
} | ||
/** | ||
* Load the plugin text domain for translation. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public function load_plugin_textdomain() { | ||
load_plugin_textdomain( | ||
$this->domain, | ||
false, | ||
dirname( plugin_basename( __FILE__ ), 2 ) . '/languages/' | ||
); | ||
} | ||
|
||
/** | ||
* Set the domain equal to that of the specified domain. | ||
* | ||
* @since 1.0.0 | ||
* | ||
* @param string $domain The domain that represents the locale of this plugin. | ||
*/ | ||
public function set_domain($domain) | ||
{ | ||
$this->domain = $domain; | ||
} | ||
/** | ||
* Set the domain equal to that of the specified domain. | ||
* | ||
* @param string $domain The domain that represents the locale of this plugin. | ||
* | ||
* @since 1.0.0 | ||
* | ||
*/ | ||
public function set_domain( string $domain ) { | ||
$this->domain = $domain; | ||
} | ||
} |
Oops, something went wrong.