PluginProbe
Customify / 2.2.0
Customify v2.2.0
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
← All changes | core/core.php +4 -6 1.4.12.2.0 View file →
@@ -1,10 +1,6 @@
1 1 <?php defined('ABSPATH') or die;
2 2
3 -/* This file is property of Pixel Grade Media. You may NOT copy, or redistribute
4 - * it. Please see the license that came with your copy for more information.
5 - */
6 -
7 3 /**
8 4 * @package pixcustomify
9 5 * @category core
10 6 * @author Pixel Grade Team
@@ -267,9 +263,9 @@
267 263 asort($priority_list, SORT_ASC);
268 264
269 265 foreach ($priority_list as $file => $priority) {
270 266 if (strpos($file, EXT)) {
271 - require $file;
267 + require_once $file;
272 268 }
273 269 }
274 270 }
275 271
@@ -286,10 +282,12 @@
286 282 return strlen($path) + substr_count($path, '/') * 100;
287 283 }
288 284
289 285 static function option( $option, $default = null ) {
286 + /** @var PixCustomifyPlugin $local_plugin */
287 + $local_plugin = PixCustomifyPlugin();
290 288
291 - return PixCustomifyPlugin::get_option($option, $default = null);
289 + return $local_plugin->get_option($option, $default = null);
292 290
293 291 }
294 292
295 293 } # class