| @@ -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 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 | |
| 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.2.2 | |
| 16 | +*/ | |
| 18 | 17 | |
| 19 | 18 | // If this file is called directly, abort. |
| 20 | 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 21 | 20 | die; |
| @@ -20,29 +19,22 @@ | ||
| 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 | +require_once 'includes/lib/class-customify-array.php'; | |
| 24 | +require_once 'includes/extras.php'; | |
| 29 | 25 | |
| 30 | - /** | |
| 31 | - * Returns the main instance of PixCustomifyPlugin to prevent the need to use globals. | |
| 32 | - * | |
| 33 | - * @since 1.5.0 | |
| 34 | - * @return PixCustomifyPlugin | |
| 35 | - */ | |
| 36 | - function PixCustomifyPlugin() { | |
| 37 | - require_once plugin_dir_path( __FILE__ ) . 'includes/class-pixcustomify.php'; | |
| 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'; | |
| 38 | 34 | |
| 39 | - return PixCustomifyPlugin::instance( __FILE__, '2.10.9' ); | |
| 40 | - } | |
| 35 | + return PixCustomifyPlugin::instance( __FILE__, '2.4.0' ); | |
| 36 | +} | |
| 41 | 37 | |
| 42 | - // Now get the party started. | |
| 43 | - // We will keep this global variable for legacy reasons. | |
| 44 | - $pixcustomify_plugin = PixCustomifyPlugin(); | |
| 45 | - | |
| 46 | - // Load all third-party plugins integrations. | |
| 47 | - require_once 'includes/integrations.php'; | |
| 48 | -} | |
| 38 | +// Now get the party started | |
| 39 | +// We will keep this global variable for legacy | |
| 40 | +$pixcustomify_plugin = PixCustomifyPlugin(); | |