|
1 | 1 | <?php |
2 | 2 | /* |
3 | | - Plugin Name: BEAPI - Maintenance Mode |
4 | | - Version: 1.0.5 |
5 | | - Plugin URI: https://github.com/BeAPI/beapi-maintenance-mode |
6 | | - Description: Puts your WordPress site into maintenance mode. |
7 | | - Author: Be API Technical team |
8 | | - Author URI: https://beapi.fr |
9 | | - Domain Path: languages |
10 | | - Text Domain: beapi-maintenance-mode-mode |
11 | | - Contributors: Maxime Culea, Nicolas Juen, Romain Lefort |
| 3 | +Plugin Name: BEAPI - Maintenance Mode |
| 4 | +Version: 1.0.6 |
| 5 | +Plugin URI: https://github.com/BeAPI/beapi-maintenance-mode |
| 6 | +Description: Puts your WordPress site into maintenance mode. |
| 7 | +Author: Be API Technical team |
| 8 | +Author URI: https://beapi.fr |
| 9 | +Domain Path: languages |
| 10 | +Text Domain: beapi-maintenance-mode-mode |
| 11 | +Contributors: Maxime Culea, Nicolas Juen, Romain Lefort |
12 | 12 |
|
13 | | - ---- |
| 13 | +---- |
14 | 14 |
|
15 | | - Copyright 2018 Be API Technical team (human@beapi.fr) |
| 15 | +Copyright 2018 Be API Technical team (human@beapi.fr) |
16 | 16 |
|
17 | | - This program is free software; you can redistribute it and/or modify |
18 | | - it under the terms of the GNU General Public License as published by |
19 | | - the Free Software Foundation; either version 2 of the License, or |
20 | | - (at your option) any later version. |
| 17 | +This program is free software; you can redistribute it and/or modify |
| 18 | +it under the terms of the GNU General Public License as published by |
| 19 | +the Free Software Foundation; either version 2 of the License, or |
| 20 | +(at your option) any later version. |
21 | 21 |
|
22 | | - This program is distributed in the hope that it will be useful, |
23 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
24 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
25 | | - GNU General Public License for more details. |
| 22 | +This program is distributed in the hope that it will be useful, |
| 23 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 25 | +GNU General Public License for more details. |
26 | 26 |
|
27 | | - You should have received a copy of the GNU General Public License |
28 | | - along with this program; if not, write to the Free Software |
29 | | - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 27 | +You should have received a copy of the GNU General Public License |
| 28 | +along with this program; if not, write to the Free Software |
| 29 | +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
30 | 30 | */ |
31 | 31 |
|
32 | 32 | // don't load directly |
|
42 | 42 | define( 'BEAPI_MAINTENANCE_MODE_URL', plugin_dir_url( __FILE__ ) ); |
43 | 43 | define( 'BEAPI_MAINTENANCE_MODE_DIR', plugin_dir_path( __FILE__ ) ); |
44 | 44 | define( 'BEAPI_MAINTENANCE_MODE_MAIN_FILE_DIR', __FILE__ ); |
45 | | -define( 'BEAPI_MAINTENANCE_MODE_PLUGIN_DIRNAME', basename( rtrim( dirname( __FILE__ ), '/' ) ) ); |
| 45 | +define( 'BEAPI_MAINTENANCE_MODE_PLUGIN_DIRNAME', basename( rtrim( __DIR__, '/' ) ) ); |
46 | 46 |
|
47 | 47 | // Check PHP min version |
48 | 48 | if ( version_compare( PHP_VERSION, BEAPI_MAINTENANCE_MODE_MIN_PHP_VERSION, '<' ) ) { |
49 | | - require_once( BEAPI_MAINTENANCE_MODE_DIR . 'compat.php' ); |
| 49 | + require_once BEAPI_MAINTENANCE_MODE_DIR . 'compat.php'; |
50 | 50 |
|
51 | 51 | // possibly display a notice, trigger error |
52 | 52 | add_action( 'admin_init', array( 'BEAPI\Maintenance_Mode\Compatibility', 'admin_init' ) ); |
|
0 commit comments