PluginProbe
Customify / 2.4.0
Customify v2.4.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 | customify.php +24 -54 1.2.52.4.0 View file →
@@ -1,70 +1,40 @@
1 1 <?php
2 2 /*
3 -* @package Customify
4 -* @author PixelGrade <contact@pixelgrade.com>
5 -* @license GPL-2.0+
6 -* @link http://pixelgrade.com
7 -* @copyright 2014 PixelGrade
8 -*
9 -* @wordpress-plugin
10 3 Plugin Name: Customify
11 -Plugin URI: http://pixelgrade.com
12 -Description: A Theme Customizer Booster
13 -Version: 1.2.5
14 -Author: PixelGrade
15 -Author URI: http://pixelgrade.com
4 +Plugin URI: https://wordpress.org/plugins/customify/
5 +Description: A Theme Customizer Booster to easily customize Fonts, Colors, and other options for your site.
6 +Version: 2.4.0
7 +Author: Pixelgrade
8 +Author URI: https://pixelgrade.com
16 9 Author Email: contact@pixelgrade.com
17 -Text Domain: pixcustomify_txtd
10 +Text Domain: customify
18 11 License: GPL-2.0+
19 12 License URI: http://www.gnu.org/licenses/gpl-2.0.txt
20 -Domain Path: /lang
13 +Domain Path: /languages/
14 +Requires at least: 4.9.9
15 +Tested up to: 5.2.2
21 16 */
22 17
23 18 // If this file is called directly, abort.
24 -if ( ! defined( 'WPINC' ) ) {
19 +if ( ! defined( 'ABSPATH' ) ) {
25 20 die;
26 21 }
27 22
28 -// ensure EXT is defined
29 -if ( ! defined('EXT')) {
30 - define('EXT', '.php');
31 -}
23 +require_once 'includes/lib/class-customify-array.php';
24 +require_once 'includes/extras.php';
32 25
33 -require 'core/bootstrap'.EXT;
26 +/**
27 + * Returns the main instance of PixCustomifyPlugin to prevent the need to use globals.
28 + *
29 + * @since 1.5.0
30 + * @return PixCustomifyPlugin
31 + */
32 +function PixCustomifyPlugin() {
33 + require_once plugin_dir_path( __FILE__ ) . 'includes/class-pixcustomify.php';
34 34
35 -$config = include 'plugin-config'.EXT;
36 -
37 -// set textdomain
38 -pixcustomify::settextdomain($config['textdomain']);
39 -
40 -// Ensure Test Data
41 -// ----------------
42 -
43 -$defaults = include 'plugin-defaults'.EXT;
44 -
45 -$current_data = get_option($config['settings-key']);
46 -
47 -if ($current_data === false) {
48 - add_option($config['settings-key'], $defaults);
35 + return PixCustomifyPlugin::instance( __FILE__, '2.4.0' );
49 36 }
50 -else if (count(array_diff_key($defaults, $current_data)) != 0) {
51 - $plugindata = array_merge($defaults, $current_data);
52 - update_option($config['settings-key'], $plugindata);
53 -}
54 -# else: data is available; do nothing
55 37
56 -// Load Callbacks
57 -// --------------
58 -
59 -$basepath = dirname(__FILE__).DIRECTORY_SEPARATOR;
60 -$callbackpath = $basepath.'callbacks'.DIRECTORY_SEPARATOR;
61 -pixcustomify::require_all($callbackpath);
62 -
63 -require_once( plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php' );
64 -
65 -// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
66 -register_activation_hook( __FILE__, array( 'PixCustomifyPlugin', 'activate' ) );
67 -//register_deactivation_hook( __FILE__, array( 'customifyPlugin', 'deactivate' ) );
68 -
69 -global $pixcustomify_plugin;
70 -$pixcustomify_plugin = PixCustomifyPlugin::get_instance();
38 +// Now get the party started
39 +// We will keep this global variable for legacy
40 +$pixcustomify_plugin = PixCustomifyPlugin();