| @@ -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.1.1 | |
| 7 | 7 | Author: Pixelgrade |
| 8 | 8 | Author URI: https://pixelgrade.com |
| 9 | 9 | Author Email: contact@pixelgrade.com |
| 10 | 10 | Text Domain: customify |
| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | Domain Path: /languages/ |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | // If this file is called directly, abort. |
| 17 | -if ( ! defined( 'WPINC' ) ) { | |
| 17 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 18 | 18 | die; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | // ensure EXT is defined |
| @@ -22,19 +22,22 @@ | ||
| 22 | 22 | if ( ! defined('EXT')) { |
| 23 | 23 | define('EXT', '.php'); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | -require 'core/bootstrap'.EXT; | |
| 26 | +require 'core/bootstrap.php'; | |
| 27 | 27 | |
| 28 | -$config = include 'plugin-config'.EXT; | |
| 28 | +// Include our helper array class. | |
| 29 | +require 'includes/lib/class-customify-array.php'; | |
| 29 | 30 | |
| 31 | +$config = include 'plugin-config.php'; | |
| 32 | + | |
| 30 | 33 | // set textdomain |
| 31 | -pixcustomify::settextdomain('customify'); | |
| 34 | +pixcustomify::settextdomain( 'customify' ); | |
| 32 | 35 | |
| 33 | 36 | // Ensure Test Data |
| 34 | 37 | // ---------------- |
| 35 | 38 | |
| 36 | -$defaults = include 'plugin-defaults'.EXT; | |
| 39 | +$defaults = include 'plugin-defaults.php'; | |
| 37 | 40 | |
| 38 | 41 | $current_data = get_option( $config['settings-key'] ); |
| 39 | 42 | |
| 40 | 43 | if ( $current_data === false ) { |
| @@ -51,11 +54,16 @@ | ||
| 51 | 54 | * @since 1.5.0 |
| 52 | 55 | * @return PixCustomifyPlugin |
| 53 | 56 | */ |
| 54 | 57 | function PixCustomifyPlugin() { |
| 58 | + /** | |
| 59 | + * The core plugin class that is used to define internationalization, | |
| 60 | + * admin-specific hooks, and public-facing site hooks. | |
| 61 | + */ | |
| 62 | + require_once plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php'; | |
| 55 | 63 | |
| 56 | - require_once( plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php' ); | |
| 57 | - $instance = PixCustomifyPlugin::instance( __FILE__, '1.5.3' ); | |
| 64 | + $instance = PixCustomifyPlugin::instance( __FILE__, '2.1.1' ); | |
| 65 | + | |
| 58 | 66 | return $instance; |
| 59 | 67 | } |
| 60 | 68 | |
| 61 | 69 | // Now get the party started |
| @@ -63,5 +71,5 @@ | ||
| 63 | 71 | $pixcustomify_plugin = PixCustomifyPlugin(); |
| 64 | 72 | |
| 65 | 73 | // Load custom modules |
| 66 | 74 | require_once( 'features/class-CSS_Editor.php' ); |
| 67 | -require_once( 'features/class-Font_Selector.php' ); | |
| 75 | +require_once( 'features/class-Font_Selector.php' ); | |