ManageWP Worker - Version 4.9.12

Version Description

  • Fix: Resolved Worker white-labeling not working as expected.
Download this release

Release Info

Developer freediver
Plugin Icon 128x128 ManageWP Worker
Version 4.9.12
Comparing to
See all releases

Code changes from version 4.9.11 to 4.9.12

Files changed (4) hide show
  1. init.php +3 -3
  2. readme.txt +3 -0
  3. src/MWP/WordPress/Context.php +6 -1
  4. version +2 -2
init.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: ManageWP - Worker
4
  Plugin URI: https://managewp.com
5
  Description: We help you efficiently manage all your WordPress websites. <strong>Updates, backups, 1-click login, migrations, security</strong> and more, on one dashboard. This service comes in two versions: standalone <a href="https://managewp.com">ManageWP</a> service that focuses on website management, and <a href="https://godaddy.com/pro">GoDaddy Pro</a> that includes additional tools for hosting, client management, lead generation, and more.
6
- Version: 4.9.11
7
  Author: GoDaddy
8
  Author URI: https://godaddy.com
9
  License: GPL2
@@ -568,8 +568,8 @@ if (!function_exists('mwp_init')):
568
  // reason (eg. the site can't ping itself). Handle that case early.
569
  register_activation_hook(__FILE__, 'mwp_activation_hook');
570
 
571
- $GLOBALS['MMB_WORKER_VERSION'] = '4.9.11';
572
- $GLOBALS['MMB_WORKER_REVISION'] = '2021-12-15 00:00:00';
573
 
574
  // Ensure PHP version compatibility.
575
  if (version_compare(PHP_VERSION, '5.2', '<')) {
3
  Plugin Name: ManageWP - Worker
4
  Plugin URI: https://managewp.com
5
  Description: We help you efficiently manage all your WordPress websites. <strong>Updates, backups, 1-click login, migrations, security</strong> and more, on one dashboard. This service comes in two versions: standalone <a href="https://managewp.com">ManageWP</a> service that focuses on website management, and <a href="https://godaddy.com/pro">GoDaddy Pro</a> that includes additional tools for hosting, client management, lead generation, and more.
6
+ Version: 4.9.12
7
  Author: GoDaddy
8
  Author URI: https://godaddy.com
9
  License: GPL2
568
  // reason (eg. the site can't ping itself). Handle that case early.
569
  register_activation_hook(__FILE__, 'mwp_activation_hook');
570
 
571
+ $GLOBALS['MMB_WORKER_VERSION'] = '4.9.12';
572
+ $GLOBALS['MMB_WORKER_REVISION'] = '2021-12-22 00:00:00';
573
 
574
  // Ensure PHP version compatibility.
575
  if (version_compare(PHP_VERSION, '5.2', '<')) {
readme.txt CHANGED
@@ -55,6 +55,9 @@ Check out the [ManageWP promo video](https://vimeo.com/220647227).
55
  https://vimeo.com/220647227
56
 
57
  == Changelog ==
 
 
 
58
  = 4.9.11 =
59
  - Fix: Ensure full compatibility with PHP 8.1
60
 
55
  https://vimeo.com/220647227
56
 
57
  == Changelog ==
58
+ = 4.9.12 =
59
+ - Fix: Resolved Worker white-labeling not working as expected.
60
+
61
  = 4.9.11 =
62
  - Fix: Ensure full compatibility with PHP 8.1
63
 
src/MWP/WordPress/Context.php CHANGED
@@ -461,7 +461,12 @@ class MWP_WordPress_Context
461
  throw new Exception(sprintf('Context value "%s" does not exist', $name));
462
  }
463
 
464
- return $this->useGlobals ? $GLOBALS[$name] : $this->context[$name];
 
 
 
 
 
465
  }
466
 
467
  /**
461
  throw new Exception(sprintf('Context value "%s" does not exist', $name));
462
  }
463
 
464
+ // Ternary operator not used since it breaks the needed reference
465
+ if ($this->useGlobals) {
466
+ return $GLOBALS[$name];
467
+ }
468
+
469
+ return $this->context[$name];
470
  }
471
 
472
  /**
version CHANGED
@@ -1,2 +1,2 @@
1
- 4.9.11
2
- 2021-12-15 00:00:00
1
+ 4.9.12
2
+ 2021-12-22 00:00:00