Added dependency plugins

This commit is contained in:
Moris Zen
2018-06-25 00:00:37 +02:00
parent 720a1c31a4
commit f069f6782f
698 changed files with 289637 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
<?php
class WPMDBPro_CLI_Addon extends WPMDBPro_Addon {
function __construct( $plugin_file_path ) {
parent::__construct( $plugin_file_path );
$this->plugin_slug = 'wp-migrate-db-pro-cli';
$this->plugin_version = $GLOBALS['wpmdb_meta']['wp-migrate-db-pro-cli']['version'];
$this->php_version_required = $GLOBALS['wpmdb_meta']['wp-migrate-db-pro-cli']['required-php-version'];
if ( ! version_compare( PHP_VERSION, $this->php_version_required, '>=' ) ) {
return;
}
if ( ! $this->meets_version_requirements( '1.7' ) ) {
return;
}
}
}