| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: FlyWP |
| 4 | 4 | * Plugin URI: https://flywp.com |
| 5 | 5 | * Description: Helper plugin for FlyWP |
| 6 | - * Version: 1.7.1 | |
| 6 | + * Version: 1.8.0 | |
| 7 | 7 | * Author: FlyWP |
| 8 | 8 | * Author URI: https://flywp.com/?utm_source=wporg&utm_medium=banner&utm_campaign=author-uri |
| 9 | 9 | * License: GPL2 |
| 10 | 10 | */ |
| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | * Plugin version. |
| 41 | 41 | * |
| 42 | 42 | * @var string |
| 43 | 43 | */ |
| 44 | - public $version = '1.7.1'; | |
| 44 | + public $version = '1.8.0'; | |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * Plugin Constructor. |
| 48 | 48 | * |
| @@ -86,8 +86,10 @@ | ||
| 86 | 86 | $router = new FlyWP\Router(); |
| 87 | 87 | $router->register_routes(); |
| 88 | 88 | |
| 89 | 89 | flush_rewrite_rules( false ); |
| 90 | + | |
| 91 | + FlyWP\StaticSite\Bootstrap::install(); | |
| 90 | 92 | } |
| 91 | 93 | |
| 92 | 94 | /** |
| 93 | 95 | * Plugin deactivation hook. |
| @@ -110,8 +112,11 @@ | ||
| 110 | 112 | // Loaded ahead of the API-key gate below, as it does not use the API key. It answers |
| 111 | 113 | // one POST path and does nothing on any other request. |
| 112 | 114 | new FlyWP\Frontend\MagicLogin(); |
| 113 | 115 | |
| 116 | + // The static site CLI commands do not use the API key. | |
| 117 | + FlyWP\StaticSite\Bootstrap::register_cli(); | |
| 118 | + | |
| 114 | 119 | if ( ! $this->has_key() ) { |
| 115 | 120 | $this->add_action( 'admin_notices', 'admin_notice' ); |
| 116 | 121 | |
| 117 | 122 | return; |
| @@ -131,8 +136,9 @@ | ||
| 131 | 136 | $this->email = new FlyWP\Email(); |
| 132 | 137 | $this->optimize = new FlyWP\Optimizations(); |
| 133 | 138 | $this->litespeed = new FlyWP\Litespeed(); |
| 134 | 139 | $this->updates_data = new FlyWP\Api\UpdatesData(); |
| 140 | + $this->static_site = new FlyWP\StaticSite\Bootstrap(); | |
| 135 | 141 | } |
| 136 | 142 | |
| 137 | 143 | /** |
| 138 | 144 | * Show admin notice if API key is not set. |