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 | customify.php +63 -35 2.10.92.3.3 View file →
@@ -1,21 +1,20 @@
1 1 <?php
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.10.9
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: 5.9.0
15 - * Tested up to: 7.1
16 - * Requires PHP: 7.4
17 - */
2 +/*
3 +Plugin Name: Customify
4 +Plugin URI: https://wordpress.org/plugins/customify/
5 +Description: A Theme Customizer Booster
6 +Version: 2.3.3
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
15 +Tested up to: 5.0.2
16 +*/
18 17
19 18 // If this file is called directly, abort.
20 19 if ( ! defined( 'ABSPATH' ) ) {
21 20 die;
@@ -20,29 +19,58 @@
20 19 if ( ! defined( 'ABSPATH' ) ) {
21 20 die;
22 21 }
23 22
24 -// Style Manager ships a deprecated Customify compatibility layer that owns this
25 -// legacy global API when both plugins are active. Avoid redeclaring it.
26 -if ( ! function_exists( 'PixCustomifyPlugin' ) && ! class_exists( 'PixCustomifyPlugin', false ) ) {
27 - require_once 'includes/lib/class-customify-array.php';
28 - require_once 'includes/extras.php';
23 +// ensure EXT is defined
24 +if ( ! defined('EXT')) {
25 + define('EXT', '.php');
26 +}
29 27
28 +require 'core/bootstrap.php';
29 +
30 +// Include our helper array class.
31 +require 'includes/lib/class-customify-array.php';
32 +
33 +$config = include 'plugin-config.php';
34 +
35 +// set textdomain
36 +pixcustomify::settextdomain( 'customify' );
37 +
38 +// Ensure Test Data
39 +// ----------------
40 +
41 +$defaults = include 'plugin-defaults.php';
42 +
43 +$current_data = get_option( $config['settings-key'] );
44 +
45 +if ( $current_data === false ) {
46 + add_option( $config['settings-key'], $defaults );
47 +} elseif ( count( array_diff_key( $defaults, $current_data ) ) != 0) {
48 + $plugindata = array_merge( $defaults, $current_data );
49 + update_option( $config['settings-key'], $plugindata );
50 +}
51 +# else: data is available; do nothing
52 +
53 +/**
54 + * Returns the main instance of PixCustomifyPlugin to prevent the need to use globals.
55 + *
56 + * @since 1.5.0
57 + * @return PixCustomifyPlugin
58 + */
59 +function PixCustomifyPlugin() {
30 60 /**
31 - * Returns the main instance of PixCustomifyPlugin to prevent the need to use globals.
32 - *
33 - * @since 1.5.0
34 - * @return PixCustomifyPlugin
61 + * The core plugin class that is used to define internationalization,
62 + * admin-specific hooks, and public-facing site hooks.
35 63 */
36 - function PixCustomifyPlugin() {
37 - require_once plugin_dir_path( __FILE__ ) . 'includes/class-pixcustomify.php';
64 + require_once plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php';
38 65
39 - return PixCustomifyPlugin::instance( __FILE__, '2.10.9' );
40 - }
66 + $instance = PixCustomifyPlugin::instance( __FILE__, '2.3.3' );
41 67
42 - // Now get the party started.
43 - // We will keep this global variable for legacy reasons.
44 - $pixcustomify_plugin = PixCustomifyPlugin();
68 + return $instance;
69 +}
45 70
46 - // Load all third-party plugins integrations.
47 - require_once 'includes/integrations.php';
48 -}
71 +// Now get the party started
72 +// We will keep this global variable for legacy
73 +$pixcustomify_plugin = PixCustomifyPlugin();
74 +
75 +// Load custom modules
76 +require_once( 'features/class-Font_Selector.php' );