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