| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
* Plugin Name: Jetpack Backup |
| 5 |
* Plugin URI: https://jetpack.com/jetpack-backup |
| 6 |
* Description: Easily restore or download a backup of your site from a specific moment in time. |
| 7 |
* Version: 0.2.0 |
| 8 |
* Author: Automattic |
| 9 |
* Author URI: https://jetpack.com/ |
| 10 |
* License: GPLv2 or later |
| 11 |
* Text Domain: jetpack-backup |
| 12 |
* |
| 13 |
* @package automattic/jetpack-backup-plugin |
| 14 |
*/ |
| 15 |
|
| 16 |
/* |
| 17 |
This program is free software; you can redistribute it and/or |
| 18 |
modify it under the terms of the GNU General Public License |
| 19 |
as published by the Free Software Foundation; either version 2 |
| 20 |
of the License, or (at your option) any later version. |
| 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. |
| 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 30 |
*/ |
| 31 |
|
| 32 |
if ( ! defined( 'ABSPATH' ) ) { |
| 33 |
exit; |
| 34 |
} |
| 35 |
|
| 36 |
// Constant definitions. |
| 37 |
define( 'JETPACK_BACKUP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 38 |
define( 'JETPACK_BACKUP_PLUGIN_ROOT_FILE', __FILE__ ); |
| 39 |
define( 'JETPACK_BACKUP_PLUGIN_SLUG', 'jetpack-backup' ); |
| 40 |
define( 'JETPACK_BACKUP_PLUGIN_NAME', 'Jetpack Backup' ); |
| 41 |
define( 'JETPACK_BACKUP_PLUGIN_URI', 'https://jetpack.com/jetpack-backup' ); |
| 42 |
|
| 43 |
// Jetpack Autoloader. |
| 44 |
$jetpack_autoloader = JETPACK_BACKUP_PLUGIN_DIR . 'vendor/autoload_packages.php'; |
| 45 |
if ( is_readable( $jetpack_autoloader ) ) { |
| 46 |
require_once $jetpack_autoloader; |
| 47 |
} else { |
| 48 |
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { |
| 49 |
error_log( // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log |
| 50 |
__( 'Error loading autoloader file for Jetpack Backup plugin', 'jetpack-backup' ) |
| 51 |
); |
| 52 |
} |
| 53 |
exit; |
| 54 |
} |
| 55 |
|
| 56 |
// Main plugin class. |
| 57 |
new Jetpack_Backup(); |
| 58 |
|