PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 3.8.6
WP STAGING – WordPress Backup, Restore, Migration & Clone v3.8.6
4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / wp-staging.php
wp-staging Last commit date
Backend 1 year ago Backup 1 year ago Basic 1 year ago Core 1 year ago Framework 1 year ago Frontend 1 year ago Notifications 1 year ago Staging 1 year ago assets 1 year ago languages 1 year ago resources 1 year ago vendor_wpstg 1 year ago views 1 year ago CONTRIBUTING.md 1 year ago Deactivate.php 2 years ago README.md 1 year ago SECURITY.md 2 years ago autoloader.php 3 years ago bootstrap.php 1 year ago constantsFree.php 1 year ago freeBootstrap.php 2 years ago install.php 2 years ago opcacheBootstrap.php 1 year ago readme.txt 1 year ago runtimeRequirements.php 2 years ago uninstall.php 1 year ago wp-staging-error-handler.php 2 years ago wp-staging.php 1 year ago
wp-staging.php
61 lines
1 <?php
2
3 /**
4 * Plugin Name: WP STAGING WordPress Backup Plugin - Backup Duplicator & Migration
5 * Plugin URI: https://wordpress.org/plugins/wp-staging
6 * Description: Backup Restore
7 * Version: 3.8.6
8 * Requires at least: 3.6+
9 * Requires PHP: 7.0
10 * Author: WP-STAGING, WPStagingBackup
11 * Author URI: https://wp-staging.com/backup-wordpress
12 * License: GPLv2 or later
13 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
14 * Text Domain: wp-staging
15 * Domain Path: /languages/
16 */
17
18 if (!defined("WPINC")) {
19 die;
20 }
21
22 /**
23 * Welcome to WP STAGING.
24 *
25 * If you're reading this, you are a curious person that likes
26 * to understand how things works, and that's awesome!
27 *
28 * The philosophy of this file is to work on all PHP versions.
29 *
30 * Before PHP can understand conditionals such as "if, else",
31 * it has to parse this file and split it into "tokens". This
32 * process is called "lexical analysis", and exists in almost
33 * all programming languages.
34 *
35 * This file uses only syntax that works with all PHP versions,
36 * so that any PHP version can parse it and run our version check
37 * conditional.
38 *
39 * Then we add more PHP files to be parsed, making sure they are
40 * running in a PHP version capable of parsing the syntax we are using.
41 */
42 if (version_compare(phpversion(), '7.0.0', '>=')) {
43 // The absolute path to the main file of this plugin.
44 global $pluginFilePath;
45 $pluginFilePath = __FILE__;
46 include dirname(__FILE__) . '/opcacheBootstrap.php';
47 include_once dirname(__FILE__) . '/freeBootstrap.php';
48 } else {
49 if (!function_exists('wpstg_unsupported_php_version')) {
50 function wpstg_unsupported_php_version()
51 {
52 echo '<div class="notice-warning notice is-dismissible">';
53 echo '<p style="font-weight: bold;">' . esc_html__('PHP Version not supported', 'wp-staging') . '</p>';
54 echo '<p>' . sprintf(esc_html__('WP STAGING requires PHP %s or higher. Your site is running an outdated version of PHP (%s), which requires an update. If you can not upgrade WordPress, install WP STAGING 2.16.0 which supports PHP 5.6.', 'wp-staging'), '7.0', esc_html(phpversion())) . '</p>';
55 echo '</div>';
56 }
57 }
58
59 add_action('wpstg.admin_notices', 'wpstg_unsupported_php_version');
60 }
61