| @@ -8,9 +8,9 @@ | ||
| 8 | 8 | * @wordpress-plugin |
| 9 | 9 | * Plugin Name: ConvertKit |
| 10 | 10 | * Plugin URI: https://convertkit.com/ |
| 11 | 11 | * Description: Quickly and easily integrate ConvertKit forms into your site. |
| 12 | - * Version: 2.2.8 | |
| 12 | + * Version: 1.9.7.2 | |
| 13 | 13 | * Author: ConvertKit |
| 14 | 14 | * Author URI: https://convertkit.com/ |
| 15 | 15 | * Text Domain: convertkit |
| 16 | 16 | */ |
| @@ -20,61 +20,36 @@ | ||
| 20 | 20 | return; |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | // Define ConverKit Plugin paths and version number. |
| 24 | -define( 'CONVERTKIT_PLUGIN_NAME', 'ConvertKit' ); // Used for user-agent in API class. | |
| 25 | 24 | define( 'CONVERTKIT_PLUGIN_FILE', plugin_basename( __FILE__ ) ); |
| 26 | 25 | define( 'CONVERTKIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 27 | 26 | define( 'CONVERTKIT_PLUGIN_PATH', __DIR__ ); |
| 28 | -define( 'CONVERTKIT_PLUGIN_VERSION', '2.2.8' ); | |
| 27 | +define( 'CONVERTKIT_PLUGIN_VERSION', '1.9.7.2' ); | |
| 29 | 28 | |
| 30 | -// Load shared classes, if they have not been included by another ConvertKit Plugin. | |
| 31 | -if ( ! class_exists( 'ConvertKit_API' ) ) { | |
| 32 | - require_once CONVERTKIT_PLUGIN_PATH . '/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-api.php'; | |
| 33 | -} | |
| 34 | -if ( ! class_exists( 'ConvertKit_Log' ) ) { | |
| 35 | - require_once CONVERTKIT_PLUGIN_PATH . '/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-log.php'; | |
| 36 | -} | |
| 37 | -if ( ! class_exists( 'ConvertKit_Resource' ) ) { | |
| 38 | - require_once CONVERTKIT_PLUGIN_PATH . '/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-resource.php'; | |
| 39 | -} | |
| 40 | -if ( ! class_exists( 'ConvertKit_Review_Request' ) ) { | |
| 41 | - require_once CONVERTKIT_PLUGIN_PATH . '/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-review-request.php'; | |
| 42 | -} | |
| 43 | - | |
| 44 | -// Load plugin files that are always required. | |
| 45 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/cron-functions.php'; | |
| 29 | +// Load files that are always required. | |
| 46 | 30 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/functions.php'; |
| 47 | 31 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-wp-convertkit.php'; |
| 48 | 32 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-ajax.php'; |
| 33 | +require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-api.php'; | |
| 49 | 34 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-gutenberg.php'; |
| 35 | +require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-log.php'; | |
| 50 | 36 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-output.php'; |
| 51 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-output-restrict-content.php'; | |
| 52 | 37 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-post.php'; |
| 53 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-preview-output.php'; | |
| 54 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-resource-creator-network-recommendations.php'; | |
| 38 | +require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-resource.php'; | |
| 55 | 39 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-resource-forms.php'; |
| 56 | 40 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-resource-landing-pages.php'; |
| 57 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-resource-posts.php'; | |
| 58 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-resource-products.php'; | |
| 59 | 41 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-resource-tags.php'; |
| 42 | +require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-review-request.php'; | |
| 60 | 43 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-settings.php'; |
| 61 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-settings-restrict-content.php'; | |
| 62 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-setup.php'; | |
| 63 | 44 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-shortcodes.php'; |
| 64 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-subscriber.php'; | |
| 45 | +require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-system-info.php'; | |
| 65 | 46 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-term.php'; |
| 66 | 47 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-user.php'; |
| 67 | 48 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/class-convertkit-widgets.php'; |
| 68 | 49 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/blocks/class-convertkit-block.php'; |
| 69 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/blocks/class-convertkit-block-broadcasts.php'; | |
| 70 | 50 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/blocks/class-convertkit-block-content.php'; |
| 71 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/blocks/class-convertkit-block-form-trigger.php'; | |
| 72 | 51 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/blocks/class-convertkit-block-form.php'; |
| 73 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/blocks/class-convertkit-block-product.php'; | |
| 74 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/block-formatters/class-convertkit-block-formatter.php'; | |
| 75 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/block-formatters/class-convertkit-block-formatter-form-link.php'; | |
| 76 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/block-formatters/class-convertkit-block-formatter-product-link.php'; | |
| 77 | 52 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/widgets/class-ck-widget-form.php'; |
| 78 | 53 | |
| 79 | 54 | // Contact Form 7 Integration. |
| 80 | 55 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/contactform7/class-convertkit-contactform7.php'; |
| @@ -79,11 +54,8 @@ | ||
| 79 | 54 | // Contact Form 7 Integration. |
| 80 | 55 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/contactform7/class-convertkit-contactform7.php'; |
| 81 | 56 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/contactform7/class-convertkit-contactform7-settings.php'; |
| 82 | 57 | |
| 83 | -// Elementor Integration. | |
| 84 | -require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/elementor/class-convertkit-elementor.php'; | |
| 85 | - | |
| 86 | 58 | // WishList Member Integration. |
| 87 | 59 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/wishlist/class-convertkit-wishlist.php'; |
| 88 | 60 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/wishlist/class-convertkit-wishlist-settings.php'; |
| 89 | 61 | |
| @@ -91,24 +63,18 @@ | ||
| 91 | 63 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/woocommerce/class-convertkit-woocommerce-product-form.php'; |
| 92 | 64 | |
| 93 | 65 | // Load files that are only used in the WordPress Administration interface. |
| 94 | 66 | if ( is_admin() ) { |
| 95 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-bulk-edit.php'; | |
| 96 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-quick-edit.php'; | |
| 97 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-cache-plugins.php'; | |
| 98 | 67 | require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-category.php'; |
| 99 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-notices.php'; | |
| 100 | 68 | require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-post.php'; |
| 101 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-refresh-resources.php'; | |
| 102 | 69 | require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-settings.php'; |
| 103 | 70 | require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-tinymce.php'; |
| 71 | + require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-upgrade.php'; | |
| 104 | 72 | require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-user.php'; |
| 105 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-setup-wizard.php'; | |
| 106 | 73 | require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-multi-value-field-table.php'; |
| 107 | 74 | require_once CONVERTKIT_PLUGIN_PATH . '/admin/section/class-convertkit-settings-base.php'; |
| 108 | 75 | require_once CONVERTKIT_PLUGIN_PATH . '/admin/section/class-convertkit-settings-general.php'; |
| 109 | 76 | require_once CONVERTKIT_PLUGIN_PATH . '/admin/section/class-convertkit-settings-tools.php'; |
| 110 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/setup-wizard/class-convertkit-admin-setup-wizard-plugin.php'; | |
| 111 | 77 | |
| 112 | 78 | // Contact Form 7 Integration. |
| 113 | 79 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php'; |
| 114 | 80 | |
| @@ -113,27 +79,16 @@ | ||
| 113 | 79 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/contactform7/class-convertkit-contactform7-admin-settings.php'; |
| 114 | 80 | |
| 115 | 81 | // WishList Member Integration. |
| 116 | 82 | require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/wishlist/class-convertkit-wishlist-admin-settings.php'; |
| 117 | - | |
| 118 | - // Restrict Content Integration. | |
| 119 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-restrict-content.php'; | |
| 120 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/class-convertkit-admin-settings-restrict-content.php'; | |
| 121 | - require_once CONVERTKIT_PLUGIN_PATH . '/admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php'; | |
| 122 | 83 | } |
| 123 | 84 | |
| 124 | -// Register Plugin activation and deactivation functions. | |
| 125 | -register_activation_hook( __FILE__, 'convertkit_plugin_activate' ); | |
| 126 | -add_action( 'wp_insert_site', 'convertkit_plugin_activate_new_site' ); | |
| 127 | -add_action( 'activate_blog', 'convertkit_plugin_activate_new_site' ); | |
| 128 | -register_deactivation_hook( __FILE__, 'convertkit_plugin_deactivate' ); | |
| 129 | - | |
| 130 | 85 | /** |
| 131 | 86 | * Main function to return Plugin instance. |
| 132 | 87 | * |
| 133 | 88 | * @since 1.9.6 |
| 134 | 89 | */ |
| 135 | -function WP_ConvertKit() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName | |
| 90 | +function WP_ConvertKit() { // phpcs:ignore | |
| 136 | 91 | |
| 137 | 92 | return WP_ConvertKit::get_instance(); |
| 138 | 93 | |
| 139 | 94 | } |