@@ -70,11 +70,11 @@ discard block |
||
70 | 70 | public function __construct() |
71 | 71 | { |
72 | 72 | if (defined('WORDPRESS_SECURITY_TXT_VERSION')) { |
73 | - $this->version = WORDPRESS_SECURITY_TXT_VERSION; |
|
73 | + $this->version=WORDPRESS_SECURITY_TXT_VERSION; |
|
74 | 74 | } else { |
75 | - $this->version = '1.0.0'; |
|
75 | + $this->version='1.0.0'; |
|
76 | 76 | } |
77 | - $this->plugin_name = 'wordpress-security-txt'; |
|
77 | + $this->plugin_name='wordpress-security-txt'; |
|
78 | 78 | |
79 | 79 | $this->load_dependencies(); |
80 | 80 | $this->set_locale(); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | require_once plugin_dir_path(dirname(__FILE__)) . 'public/class-wordpress-security-txt-public.php'; |
141 | 141 | |
142 | - $this->loader = new WordPress_Security_Txt_Loader(); |
|
142 | + $this->loader=new WordPress_Security_Txt_Loader(); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | */ |
154 | 154 | private function set_locale() |
155 | 155 | { |
156 | - $plugin_i18n = new WordPress_Security_Txt_i18n(); |
|
156 | + $plugin_i18n=new WordPress_Security_Txt_i18n(); |
|
157 | 157 | |
158 | 158 | $this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain'); |
159 | 159 | } |
@@ -167,9 +167,9 @@ discard block |
||
167 | 167 | */ |
168 | 168 | private function define_admin_hooks() |
169 | 169 | { |
170 | - $plugin_admin = new WordPress_Security_Txt_Admin($this->get_plugin_name(), $this->get_version()); |
|
170 | + $plugin_admin=new WordPress_Security_Txt_Admin($this->get_plugin_name(), $this->get_version()); |
|
171 | 171 | |
172 | - if (isset($_GET['page']) && ($_GET['page'] == 'wordpress-security-txt' || $_GET['page'] == 'wordpress-security-txt-help')) { |
|
172 | + if (isset($_GET[ 'page' ]) && ($_GET[ 'page' ] == 'wordpress-security-txt' || $_GET[ 'page' ] == 'wordpress-security-txt-help')) { |
|
173 | 173 | $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles'); |
174 | 174 | $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts'); |
175 | 175 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | */ |
217 | 217 | private function define_public_hooks() |
218 | 218 | { |
219 | - $plugin_public = new WordPress_Security_Txt_Public($this->get_plugin_name(), $this->get_version()); |
|
219 | + $plugin_public=new WordPress_Security_Txt_Public($this->get_plugin_name(), $this->get_version()); |
|
220 | 220 | |
221 | 221 | $this->loader->add_action('plugins_loaded', $plugin_public, 'route'); |
222 | 222 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | * @since 1.0.0 |
228 | 228 | * @return void |
229 | 229 | */ |
230 | - public static function event($name, $version = WORDPRESS_SECURITY_TXT_VERSION) |
|
230 | + public static function event($name, $version=WORDPRESS_SECURITY_TXT_VERSION) |
|
231 | 231 | { |
232 | 232 | /** |
233 | 233 | * Removed at the request of wordpress.org; pending resolution; |