| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @wordpress-plugin |
| 5 |
* Plugin Name: WindPress |
| 6 |
* Plugin URI: https://wind.press |
| 7 |
* Description: Integrate Tailwind CSS into WordPress seamlessly, in just seconds. Works well with the block editor, page builders, plugins, themes, and custom code. |
| 8 |
* Text Domain: windpress |
| 9 |
* Version: 3.2.85 |
| 10 |
* Requires at least: 6.0 |
| 11 |
* Requires PHP: 7.4 |
| 12 |
* Author: WindPress |
| 13 |
* Author URI: https://wind.press |
| 14 |
* License: GPL-3.0-or-later |
| 15 |
* |
| 16 |
* @package WindPress |
| 17 |
* @author Joshua Gugun Siagian <suabahasa@gmail.com> |
| 18 |
*/ |
| 19 |
declare (strict_types=1); |
| 20 |
namespace WindPressDeps; |
| 21 |
|
| 22 |
use WindPress\WindPress\Plugin; |
| 23 |
use WindPress\WindPress\Utils\Requirement; |
| 24 |
\defined('ABSPATH') || exit; |
| 25 |
if (\file_exists(__DIR__ . '/vendor/autoload.php')) { |
| 26 |
if (\file_exists(__DIR__ . '/vendor/scoper-autoload.php')) { |
| 27 |
require_once __DIR__ . '/vendor/scoper-autoload.php'; |
| 28 |
} else { |
| 29 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 30 |
} |
| 31 |
$requirement = new Requirement(); |
| 32 |
$requirement->php('7.4')->wp('6.0'); |
| 33 |
if ($requirement->met()) { |
| 34 |
Plugin::get_instance()->boot(); |
| 35 |
} else { |
| 36 |
\add_action('admin_notices', fn() => $requirement->printNotice(), 0, 0); |
| 37 |
// Deactivate the plugin if the requirements are not met. |
| 38 |
// This is to ensure the activation process is executed at least once when the requirements are met. |
| 39 |
\add_action('admin_init', fn() => \deactivate_plugins(\plugin_basename(__FILE__)), 0, 0); |
| 40 |
} |
| 41 |
} |
| 42 |
|