WP Engine Automated Migration - Version 3.4

Version Description

  • Plugin branding fixes
Download this release

Release Info

Developer ritesh.soni36
Plugin Icon 128x128 WP Engine Automated Migration
Version 3.4
Comparing to
See all releases

Code changes from version 3.2 to 3.4

account.php CHANGED
@@ -174,8 +174,8 @@ if (!class_exists('WPEAccount')) :
174
  return false;
175
  }
176
 
177
- public function doesAccountExists($pubkey) {
178
- $accounts = self::allAccounts($this->settings);
179
  return array_key_exists($pubkey, $accounts);
180
  }
181
  }
174
  return false;
175
  }
176
 
177
+ public static function exists($settings, $pubkey) {
178
+ $accounts = self::allAccounts($settings);
179
  return array_key_exists($pubkey, $accounts);
180
  }
181
  }
admin/main_page.php CHANGED
@@ -113,7 +113,7 @@
113
 
114
  <hr/>
115
  <div>
116
- <input type="checkbox" name="consent" onchange="document.getElementById('migratesubmit').disabled = !this.checked;" value="1"/>I agree to WP Engine's <a href="https://wpengine.com/terms-of-service/" target="_blank" rel="noopener noreferrer">Terms of Service</a>
117
  </div>
118
  <br><input type='submit' disabled id='migratesubmit' value='Migrate' class="button button-primary">
119
  </form>
113
 
114
  <hr/>
115
  <div>
116
+ <input type="checkbox" style="width:16px; height:16px" name="consent" onchange="document.getElementById('migratesubmit').disabled = !this.checked;" value="1"/>I agree to WP Engine's <a href="https://wpengine.com/terms-of-service/" target="_blank" rel="noopener noreferrer">Terms of Service</a>
117
  </div>
118
  <br><input type='submit' disabled id='migratesubmit' value='Migrate' class="button button-primary">
119
  </form>
callback/wings/account.php CHANGED
@@ -18,7 +18,7 @@ class BVAccountCallback extends BVCallbackBase {
18
  switch ($request->method) {
19
  case "addacc":
20
  WPEAccount::addAccount($this->settings, $params['public'], $params['secret']);
21
- $resp = array("status" => $account->doesAccountExists($params['public']));
22
  break;
23
  case "rmacc":
24
  $resp = array("status" => $account->remove($params['public']));
@@ -29,7 +29,7 @@ class BVAccountCallback extends BVCallbackBase {
29
  $info['url'] = $params['url'];
30
  $info['pubkey'] = $params['pubkey'];
31
  $account->updateInfo($info);
32
- $resp = array("status" => $account->doesAccountExists($params['pubkey']));
33
  break;
34
  case "updtapikey":
35
  $resp = array("status" => WPEAccount::updateApiPublicKey($this->settings, $params['pubkey']));
18
  switch ($request->method) {
19
  case "addacc":
20
  WPEAccount::addAccount($this->settings, $params['public'], $params['secret']);
21
+ $resp = array("status" => WPEAccount::exists($this->settings, $params['public']));
22
  break;
23
  case "rmacc":
24
  $resp = array("status" => $account->remove($params['public']));
29
  $info['url'] = $params['url'];
30
  $info['pubkey'] = $params['pubkey'];
31
  $account->updateInfo($info);
32
+ $resp = array("status" => WPEAccount::exists($this->settings, $params['pubkey']));
33
  break;
34
  case "updtapikey":
35
  $resp = array("status" => WPEAccount::updateApiPublicKey($this->settings, $params['pubkey']));
info.php CHANGED
@@ -9,7 +9,7 @@ if (!class_exists('WPEInfo')) :
9
  public $badgeinfo = 'wpebadge';
10
  public $ip_header_option = 'wpeipheader';
11
  public $brand_option = 'wpebrand';
12
- public $version = '3.2';
13
  public $webpage = 'https://wpengine.com';
14
  public $appurl = 'https://wpengine.blogvault.net';
15
  public $slug = 'wp-site-migrate/wpengine.php';
9
  public $badgeinfo = 'wpebadge';
10
  public $ip_header_option = 'wpeipheader';
11
  public $brand_option = 'wpebrand';
12
+ public $version = '3.4';
13
  public $webpage = 'https://wpengine.com';
14
  public $appurl = 'https://wpengine.blogvault.net';
15
  public $slug = 'wp-site-migrate/wpengine.php';
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: wpengine, blogvault, akshatc, taylor4484
3
  Tags: wpe, wpengine, migration
4
  Requires at least: 4.0
5
- Tested up to: 5.2.1
6
- Stable tag: 3.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -78,6 +78,9 @@ That's easy! [Signup here](http://wpengine.com/plans/).
78
  2. BlogVault dashboard showing live updates.
79
 
80
  == Changelog ==
 
 
 
81
  = 3.2 =
82
  * Updating account authentication struture
83
 
2
  Contributors: wpengine, blogvault, akshatc, taylor4484
3
  Tags: wpe, wpengine, migration
4
  Requires at least: 4.0
5
+ Tested up to: 5.3
6
+ Stable tag: 3.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
78
  2. BlogVault dashboard showing live updates.
79
 
80
  == Changelog ==
81
+ = 3.4 =
82
+ * Plugin branding fixes
83
+
84
  = 3.2 =
85
  * Updating account authentication struture
86
 
wp_admin.php CHANGED
@@ -154,6 +154,11 @@ class WPEWPAdmin {
154
 
155
  public function initBranding($plugins) {
156
  $slug = $this->bvinfo->slug;
 
 
 
 
 
157
  $brand = $this->bvinfo->getBrandInfo();
158
  if ($brand) {
159
  if (array_key_exists('hide', $brand)) {
154
 
155
  public function initBranding($plugins) {
156
  $slug = $this->bvinfo->slug;
157
+
158
+ if (!is_array($plugins) || !isset($slug, $plugins)) {
159
+ return $plugins;
160
+ }
161
+
162
  $brand = $this->bvinfo->getBrandInfo();
163
  if ($brand) {
164
  if (array_key_exists('hide', $brand)) {
wpengine.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wpengine.com
5
  Description: The easiest way to migrate your site to WP Engine
6
  Author: WPEngine
7
  Author URI: https://wpengine.com
8
- Version: 3.2
9
  Network: True
10
  */
11
 
5
  Description: The easiest way to migrate your site to WP Engine
6
  Author: WPEngine
7
  Author URI: https://wpengine.com
8
+ Version: 3.4
9
  Network: True
10
  */
11