| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: Customify |
| 4 | 4 | Plugin URI: https://wordpress.org/plugins/customify/ |
| 5 | 5 | Description: A Theme Customizer Booster |
| 6 | -Version: 1.5.3 | |
| 6 | +Version: 2.3.3 | |
| 7 | 7 | Author: Pixelgrade |
| 8 | 8 | Author URI: https://pixelgrade.com |
| 9 | 9 | Author Email: contact@pixelgrade.com |
| 10 | 10 | Text Domain: customify |
| @@ -10,12 +10,14 @@ | ||
| 10 | 10 | Text Domain: customify |
| 11 | 11 | License: GPL-2.0+ |
| 12 | 12 | License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 13 | 13 | Domain Path: /languages/ |
| 14 | +Requires at least: 4.9 | |
| 15 | +Tested up to: 5.0.2 | |
| 14 | 16 | */ |
| 15 | 17 | |
| 16 | 18 | // If this file is called directly, abort. |
| 17 | -if ( ! defined( 'WPINC' ) ) { | |
| 19 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 18 | 20 | die; |
| 19 | 21 | } |
| 20 | 22 | |
| 21 | 23 | // ensure EXT is defined |
| @@ -22,19 +24,22 @@ | ||
| 22 | 24 | if ( ! defined('EXT')) { |
| 23 | 25 | define('EXT', '.php'); |
| 24 | 26 | } |
| 25 | 27 | |
| 26 | -require 'core/bootstrap'.EXT; | |
| 28 | +require 'core/bootstrap.php'; | |
| 27 | 29 | |
| 28 | -$config = include 'plugin-config'.EXT; | |
| 30 | +// Include our helper array class. | |
| 31 | +require 'includes/lib/class-customify-array.php'; | |
| 29 | 32 | |
| 33 | +$config = include 'plugin-config.php'; | |
| 34 | + | |
| 30 | 35 | // set textdomain |
| 31 | -pixcustomify::settextdomain('customify'); | |
| 36 | +pixcustomify::settextdomain( 'customify' ); | |
| 32 | 37 | |
| 33 | 38 | // Ensure Test Data |
| 34 | 39 | // ---------------- |
| 35 | 40 | |
| 36 | -$defaults = include 'plugin-defaults'.EXT; | |
| 41 | +$defaults = include 'plugin-defaults.php'; | |
| 37 | 42 | |
| 38 | 43 | $current_data = get_option( $config['settings-key'] ); |
| 39 | 44 | |
| 40 | 45 | if ( $current_data === false ) { |
| @@ -51,11 +56,16 @@ | ||
| 51 | 56 | * @since 1.5.0 |
| 52 | 57 | * @return PixCustomifyPlugin |
| 53 | 58 | */ |
| 54 | 59 | function PixCustomifyPlugin() { |
| 60 | + /** | |
| 61 | + * The core plugin class that is used to define internationalization, | |
| 62 | + * admin-specific hooks, and public-facing site hooks. | |
| 63 | + */ | |
| 64 | + require_once plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php'; | |
| 55 | 65 | |
| 56 | - require_once( plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php' ); | |
| 57 | - $instance = PixCustomifyPlugin::instance( __FILE__, '1.5.3' ); | |
| 66 | + $instance = PixCustomifyPlugin::instance( __FILE__, '2.3.3' ); | |
| 67 | + | |
| 58 | 68 | return $instance; |
| 59 | 69 | } |
| 60 | 70 | |
| 61 | 71 | // Now get the party started |
| @@ -62,6 +72,5 @@ | ||
| 62 | 72 | // We will keep this global variable for legacy |
| 63 | 73 | $pixcustomify_plugin = PixCustomifyPlugin(); |
| 64 | 74 | |
| 65 | 75 | // Load custom modules |
| 66 | -require_once( 'features/class-CSS_Editor.php' ); | |
| 67 | -require_once( 'features/class-Font_Selector.php' ); | |
| 76 | +require_once( 'features/class-Font_Selector.php' ); | |