PluginProbe
Customify / 2.3.3
Customify v2.3.3
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 +6 -8 1.2.32.3.3 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
@@ -190,9 +186,9 @@
190 186 }
191 187 }
192 188
193 189 /** @var string the translation text domain */
194 - protected static $textdomain = 'pixcustomify_txtd';
190 + protected static $textdomain = 'customify';
195 191
196 192 /**
197 193 * @return string text domain
198 194 */
@@ -209,9 +205,9 @@
209 205 self::$textdomain = $textdomain;
210 206 }
211 207 else { // null or otherwise empty value
212 208 // revert to default
213 - self::$textdomain = 'pixcustomify_txtd';
209 + self::$textdomain = 'customify';
214 210 }
215 211 }
216 212
217 213 /**
@@ -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