ManageWP Worker - Version 4.9.13

Version Description

  • Fix: Resolved old PHP version compatibility issues.
Download this release

Release Info

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

Code changes from version 4.9.12 to 4.9.13

Files changed (4) hide show
  1. init.php +3 -3
  2. readme.txt +3 -0
  3. src/MWP/WordPress/Context.php +18 -6
  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.12
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.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', '<')) {
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.13
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.13';
572
+ $GLOBALS['MMB_WORKER_REVISION'] = '2021-12-27 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.12 =
59
  - Fix: Resolved Worker white-labeling not working as expected.
60
 
55
  https://vimeo.com/220647227
56
 
57
  == Changelog ==
58
+ = 4.9.13 =
59
+ - Fix: Resolved old PHP version compatibility issues.
60
+
61
  = 4.9.12 =
62
  - Fix: Resolved Worker white-labeling not working as expected.
63
 
src/MWP/WordPress/Context.php CHANGED
@@ -300,8 +300,10 @@ class MWP_WordPress_Context
300
 
301
  public function getThemes()
302
  {
 
 
303
  // When the plugin is MU-loaded, the WordPress theme directories are not set.
304
- if (empty($this->get('wp_theme_directories'))) {
305
  // Register the default theme directory root.
306
  register_theme_directory(get_theme_root());
307
  }
@@ -315,8 +317,10 @@ class MWP_WordPress_Context
315
 
316
  public function getCurrentTheme()
317
  {
 
 
318
  // When the plugin is MU-loaded, the WordPress theme directories are not set.
319
- if ($this->isMustUse() && empty($this->get('wp_theme_directories'))) {
320
  // Register the default theme directory root.
321
  register_theme_directory(get_theme_root());
322
  }
@@ -367,7 +371,9 @@ class MWP_WordPress_Context
367
 
368
  private function isMustUse()
369
  {
370
- if (empty($this->get('mwp_is_mu'))) {
 
 
371
  return false;
372
  }
373
 
@@ -616,7 +622,9 @@ class MWP_WordPress_Context
616
 
617
  public function requireTaxonomies()
618
  {
619
- if (!empty($this->get('wp_taxonomies'))) {
 
 
620
  return;
621
  }
622
 
@@ -625,7 +633,9 @@ class MWP_WordPress_Context
625
 
626
  public function requirePostTypes()
627
  {
628
- if (!empty($this->get('wp_post_types'))) {
 
 
629
  return;
630
  }
631
 
@@ -634,7 +644,9 @@ class MWP_WordPress_Context
634
 
635
  public function requireTheme()
636
  {
637
- if (!empty($this->get('wp_theme_directories'))) {
 
 
638
  return;
639
  }
640
 
300
 
301
  public function getThemes()
302
  {
303
+ $wpThemeDirectories = $this->get('wp_theme_directories');
304
+
305
  // When the plugin is MU-loaded, the WordPress theme directories are not set.
306
+ if (empty($wpThemeDirectories)) {
307
  // Register the default theme directory root.
308
  register_theme_directory(get_theme_root());
309
  }
317
 
318
  public function getCurrentTheme()
319
  {
320
+ $wpThemeDirectories = $this->get('wp_theme_directories');
321
+
322
  // When the plugin is MU-loaded, the WordPress theme directories are not set.
323
+ if ($this->isMustUse() && empty($wpThemeDirectories)) {
324
  // Register the default theme directory root.
325
  register_theme_directory(get_theme_root());
326
  }
371
 
372
  private function isMustUse()
373
  {
374
+ $mwpIsMu = $this->get('mwp_is_mu');
375
+
376
+ if (empty($mwpIsMu)) {
377
  return false;
378
  }
379
 
622
 
623
  public function requireTaxonomies()
624
  {
625
+ $wpTaxonomies = $this->get('wp_taxonomies');
626
+
627
+ if (!empty($wpTaxonomies)) {
628
  return;
629
  }
630
 
633
 
634
  public function requirePostTypes()
635
  {
636
+ $wpPostTypes = $this->get('wp_post_types');
637
+
638
+ if (!empty($wpPostTypes)) {
639
  return;
640
  }
641
 
644
 
645
  public function requireTheme()
646
  {
647
+ $wpThemeDirectories = $this->get('wp_theme_directories');
648
+
649
+ if (!empty($wpThemeDirectories)) {
650
  return;
651
  }
652
 
version CHANGED
@@ -1,2 +1,2 @@
1
- 4.9.12
2
- 2021-12-22 00:00:00
1
+ 4.9.13
2
+ 2021-12-27 00:00:00