| @@ -1,25 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -/** | |
| 4 | - * Plugin Name: Blockspare - Gutenberg Blocks | |
| 5 | - * Plugin URI: https://wpblockspare.com | |
| 6 | - * Description: An Amazing Block Library That Lets You Reimagine the Way You Use the WordPress Block Editor (Gutenberg). | |
| 7 | - * Author: Gambit Technologies, Inc | |
| 8 | - * Author URI: http://gambit.ph | |
| 9 | - * Text Domain: blockspare | |
| 10 | - * Version: 2.3.2 | |
| 11 | - * | |
| 12 | - * @package Blockspare | |
| 13 | - */ | |
| 14 | -// Exit if accessed directly. | |
| 15 | -if ( !defined( 'ABSPATH' ) ) { | |
| 16 | - exit; | |
| 17 | -} | |
| 18 | - | |
| 19 | -// Plugin slug. | |
| 20 | -defined( 'BLOCKSPARE_CLOUDFRONT_URL' ) || define( 'BLOCKSPARE_CLOUDFRONT_URL', 'https://d3gt1urn7320t9.cloudfront.net' ); | |
| 21 | -// CloudFront CDN URL | |
| 22 | 3 | /******************************************************************************************** |
| 23 | 4 | * Activation & PHP version checks. |
| 24 | 5 | ********************************************************************************************/ |
| 25 | 6 | |
| @@ -27,9 +8,9 @@ | ||
| 27 | 8 | /** |
| 28 | 9 | * Upon activation, check if we have the proper PHP version. |
| 29 | 10 | * Show an error if needed and don't continue with the plugin. |
| 30 | 11 | * |
| 31 | - * @since 1.9 | |
| 12 | + * @since 1.0.0 | |
| 32 | 13 | */ |
| 33 | 14 | function blockspare_php_requirement_activation_check() |
| 34 | 15 | { |
| 35 | 16 | |
| @@ -35,9 +16,9 @@ | ||
| 35 | 16 | |
| 36 | 17 | if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) { |
| 37 | 18 | deactivate_plugins( basename( __FILE__ ) ); |
| 38 | 19 | wp_die( sprintf( |
| 39 | - __( '%s"Blockspare" can not be activated. %s It requires PHP version 5.3.0 or higher, but PHP version %s is used on the site. Please upgrade your PHP version first ✌️ %s Back %s', 'blockspare' ), | |
| 20 | + __( '%s"Blockspare" can not be activated. %s It requires PHP version 5.3.0 or higher, but PHP version %s is used on the site. Please upgrade your PHP version first %s Back %s', 'blockspare' ), | |
| 40 | 21 | '<strong>', |
| 41 | 22 | '</strong><br><br>', |
| 42 | 23 | PHP_VERSION, |
| 43 | 24 | '<br /><br /><a href="' . esc_url( get_dashboard_url( get_current_user_id(), 'plugins.php' ) ) . '" class="button button-primary">', |
| @@ -53,9 +34,9 @@ | ||
| 53 | 34 | /** |
| 54 | 35 | * Always check the PHP version at the start. |
| 55 | 36 | * If the PHP version isn't sufficient, don't continue to prevent any unwanted errors. |
| 56 | 37 | * |
| 57 | - * @since 1.9 | |
| 38 | + * @since 1.0.0 | |
| 58 | 39 | */ |
| 59 | 40 | |
| 60 | 41 | if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) { |
| 61 | 42 | if ( !function_exists( 'blockspare_php_requirement_notice' ) ) { |
| @@ -71,9 +52,9 @@ | ||
| 71 | 52 | |
| 72 | 53 | /** |
| 73 | 54 | * Always keep note of the Blockspare version. |
| 74 | 55 | * |
| 75 | - * @since 2.0 | |
| 56 | + * @since 1.0.0 | |
| 76 | 57 | */ |
| 77 | 58 | |
| 78 | 59 | if ( !function_exists( 'blockspare_version_upgrade_check' ) ) { |
| 79 | 60 | function blockspare_version_upgrade_check() |
| @@ -94,11 +75,11 @@ | ||
| 94 | 75 | |
| 95 | 76 | add_action( 'admin_menu', 'blockspare_version_upgrade_check', 1 ); |
| 96 | 77 | } |
| 97 | 78 | |
| 98 | -/******************************************************************************************** | |
| 79 | +/** | |
| 99 | 80 | * END Activation & PHP version checks. |
| 100 | - ********************************************************************************************/ | |
| 81 | + */ | |
| 101 | 82 | |
| 102 | 83 | /** |
| 103 | 84 | * Ready for Welcome screen. |
| 104 | 85 | */ |