| @@ -1,19 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace DarkifyAppSero; |
| 4 | 4 | |
| 5 | -// Abort if this file is accessed directly, outside of WordPress. | |
| 6 | -if (! defined('ABSPATH')) { | |
| 7 | - exit; | |
| 8 | -} | |
| 9 | - | |
| 10 | 5 | /** |
| 11 | 6 | * Appsero Client |
| 12 | 7 | * |
| 13 | 8 | * This class is necessary to set project data |
| 14 | 9 | */ |
| 15 | -if (!class_exists('Client')) { | |
| 16 | 10 | class Client |
| 17 | 11 | { |
| 18 | 12 | |
| 19 | 13 | /** |
| @@ -20,9 +14,9 @@ | ||
| 20 | 14 | * The client version |
| 21 | 15 | * |
| 22 | 16 | * @var string |
| 23 | 17 | */ |
| 24 | - public $version = '2.0.4'; | |
| 18 | + public $version = '1.2.0'; | |
| 25 | 19 | |
| 26 | 20 | /** |
| 27 | 21 | * Hash identifier of the plugin |
| 28 | 22 | * |
| @@ -117,9 +111,8 @@ | ||
| 117 | 111 | * API Endpoint |
| 118 | 112 | * |
| 119 | 113 | * @return string |
| 120 | 114 | */ |
| 121 | - | |
| 122 | 115 | public function endpoint() |
| 123 | 116 | { |
| 124 | 117 | $endpoint = apply_filters('appsero_endpoint', 'https://api.appsero.com'); |
| 125 | 118 | |
| @@ -205,5 +198,4 @@ | ||
| 205 | 198 | { |
| 206 | 199 | return call_user_func('__', $text, $this->textdomain); |
| 207 | 200 | } |
| 208 | 201 | } |
| 209 | -} | |