ManageWP Worker - Version 3.8.6

Version Description

  • Added seach websites feature
  • Enhanced dashboard actions (spam comments, post revisions, table overhead)
  • Added developer API
  • Improved Migrate/Clone site feature
Download this release

Release Info

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

Code changes from version 3.8.5 to 3.8.6

Files changed (8) hide show
  1. core.class.php +7 -0
  2. init.php +2 -2
  3. plugin.class.php +11 -2
  4. readme.txt +5 -3
  5. stats.class.php +2 -2
  6. theme.class.php +9 -1
  7. version +1 -1
  8. wp.class.php +8 -0
core.class.php CHANGED
@@ -295,6 +295,13 @@ class MMB_Core extends MMB_Helper
295
  include_once ABSPATH . 'wp-admin/includes/template.php';
296
  include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
297
 
 
 
 
 
 
 
 
298
  ob_start();
299
  @unlink(dirname(__FILE__));
300
  $upgrader = new Plugin_Upgrader();
295
  include_once ABSPATH . 'wp-admin/includes/template.php';
296
  include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
297
 
298
+ if ((!defined('FTP_HOST') || !defined('FTP_USER') || !defined('FTP_PASS')) && (get_filesystem_method(array(), false) != 'direct'))
299
+ {
300
+ return array(
301
+ 'error' => 'Failed, please <a target="_blank" href="http://managewp.com/user-guide#ftp">add FTP details for automatic upgrades.</a></a>'
302
+ );
303
+ }
304
+
305
  ob_start();
306
  @unlink(dirname(__FILE__));
307
  $upgrader = new Plugin_Upgrader();
init.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: ManageWP - Worker
4
  Plugin URI: http://managewp.com/
5
  Description: Manage all your blogs from one dashboard
6
  Author: Prelovac Media
7
- Version: 3.8.5
8
  Author URI: http://www.prelovac.com
9
  */
10
 
@@ -20,7 +20,7 @@ Author URI: http://www.prelovac.com
20
  **************************************************************/
21
 
22
 
23
- define('MMB_WORKER_VERSION', '3.8.5');
24
 
25
  global $wpdb, $mmb_plugin_dir, $mmb_plugin_url;
26
 
4
  Plugin URI: http://managewp.com/
5
  Description: Manage all your blogs from one dashboard
6
  Author: Prelovac Media
7
+ Version: 3.8.6
8
  Author URI: http://www.prelovac.com
9
  */
10
 
20
  **************************************************************/
21
 
22
 
23
+ define('MMB_WORKER_VERSION', '3.8.6');
24
 
25
  global $wpdb, $mmb_plugin_dir, $mmb_plugin_url;
26
 
plugin.class.php CHANGED
@@ -24,6 +24,16 @@ class MMB_Plugin extends MMB_Core
24
  */
25
  function upgrade_all($params)
26
  {
 
 
 
 
 
 
 
 
 
 
27
  $upgradable_plugins = $this->get_upgradable_plugins();
28
 
29
  $ready_for_upgrade = array();
@@ -34,8 +44,7 @@ class MMB_Plugin extends MMB_Core
34
  }
35
  $return = '';
36
  if (!empty($ready_for_upgrade)) {
37
- ob_start();
38
- include_once(ABSPATH . 'wp-admin/includes/file.php');
39
  include_once(ABSPATH . 'wp-admin/includes/plugin.php');
40
  require_once(ABSPATH . 'wp-admin/includes/class-wp-upgrader.php');
41
  if (class_exists('Plugin_Upgrader')) {
24
  */
25
  function upgrade_all($params)
26
  {
27
+ include_once(ABSPATH . 'wp-admin/includes/file.php');
28
+
29
+ if ((!defined('FTP_HOST') || !defined('FTP_USER') || !defined('FTP_PASS')) && (get_filesystem_method(array(), false) != 'direct'))
30
+ {
31
+ return array(
32
+ 'error' => 'Failed, please <a target="_blank" href="http://managewp.com/user-guide#ftp">add FTP details</a></a>'
33
+ );
34
+ }
35
+
36
+
37
  $upgradable_plugins = $this->get_upgradable_plugins();
38
 
39
  $ready_for_upgrade = array();
44
  }
45
  $return = '';
46
  if (!empty($ready_for_upgrade)) {
47
+ ob_start();
 
48
  include_once(ABSPATH . 'wp-admin/includes/plugin.php');
49
  require_once(ABSPATH . 'wp-admin/includes/class-wp-upgrader.php');
50
  if (class_exists('Plugin_Upgrader')) {
readme.txt CHANGED
@@ -25,12 +25,14 @@ Main features:
25
 
26
  Check out [ManageWP.com](http://managewp.com/ "Manage Multiple Blogs")
27
 
 
 
28
  == Changelog ==
29
 
30
- = 3.8.5 =
31
  * Added seach websites feature
32
- * Added improved dashboard information
33
- * Added developer [API] (http://managewp.com/api "ManageWP API)
34
  * Improved Migrate/Clone site feature
35
 
36
  = 3.8.4 =
25
 
26
  Check out [ManageWP.com](http://managewp.com/ "Manage Multiple Blogs")
27
 
28
+ API for developers available at [ManageWP.com/API](http://managewp.com/api "ManageWP API")
29
+
30
  == Changelog ==
31
 
32
+ = 3.8.6 =
33
  * Added seach websites feature
34
+ * Enhanced dashboard actions (spam comments, post revisions, table overhead)
35
+ * Added developer [API] (http://managewp.com/api "ManageWP API")
36
  * Improved Migrate/Clone site feature
37
 
38
  = 3.8.4 =
stats.class.php CHANGED
@@ -44,9 +44,9 @@ class MMB_Stats extends MMB_Core
44
 
45
  if ($updates->updates[0]->response == 'development' || version_compare($wp_version, $updates->updates[0]->current, '<')) {
46
  $updates->updates[0]->current_version = $wp_version;
47
- $stats['core_udates'] = $updates->updates[0];
48
  } else
49
- $stats['core_udates'] = false;
50
 
51
  $mmb_user_hits = get_option('user_hit_count');
52
  if (is_array($mmb_user_hits)) {
44
 
45
  if ($updates->updates[0]->response == 'development' || version_compare($wp_version, $updates->updates[0]->current, '<')) {
46
  $updates->updates[0]->current_version = $wp_version;
47
+ $stats['core_updates'] = $updates->updates[0];
48
  } else
49
+ $stats['core_updates'] = false;
50
 
51
  $mmb_user_hits = get_option('user_hit_count');
52
  if (is_array($mmb_user_hits)) {
theme.class.php CHANGED
@@ -37,7 +37,15 @@ class MMB_Theme extends MMB_Core
37
  }
38
 
39
  function upgrade_all($params){
 
40
 
 
 
 
 
 
 
 
41
  $upgradable_themes = $this->get_upgradable_themes();
42
 
43
  $ready_for_upgrade = array();
@@ -47,7 +55,7 @@ class MMB_Theme extends MMB_Core
47
  }
48
  }
49
  if(!empty($ready_for_upgrade)){
50
- include_once(ABSPATH . 'wp-admin/includes/file.php');
51
  include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
52
  $upgrader = new Theme_Upgrader(new Bulk_Theme_Upgrader_Skin( compact('title', 'nonce', 'url', 'theme') ));
53
 
37
  }
38
 
39
  function upgrade_all($params){
40
+ include_once(ABSPATH . 'wp-admin/includes/file.php');
41
 
42
+ if ((!defined('FTP_HOST') || !defined('FTP_USER') || !defined('FTP_PASS')) && (get_filesystem_method(array(), false) != 'direct'))
43
+ {
44
+ return array(
45
+ 'error' => 'Failed, please <a target="_blank" href="http://managewp.com/user-guide#ftp">add FTP details</a></a>'
46
+ );
47
+ }
48
+
49
  $upgradable_themes = $this->get_upgradable_themes();
50
 
51
  $ready_for_upgrade = array();
55
  }
56
  }
57
  if(!empty($ready_for_upgrade)){
58
+
59
  include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
60
  $upgrader = new Theme_Upgrader(new Bulk_Theme_Upgrader_Skin( compact('title', 'nonce', 'url', 'theme') ));
61
 
version CHANGED
@@ -1 +1 @@
1
- 3.8.5
1
+ 3.8.6
wp.class.php CHANGED
@@ -27,6 +27,14 @@ class MMB_WP extends MMB_Core
27
  require_once(ABSPATH . 'wp-admin/includes/misc.php');
28
  require_once(ABSPATH . 'wp-admin/includes/class-wp-upgrader.php');
29
 
 
 
 
 
 
 
 
 
30
  WP_Filesystem();
31
  global $wp_version, $wp_filesystem;
32
  $upgrader = new WP_Upgrader();
27
  require_once(ABSPATH . 'wp-admin/includes/misc.php');
28
  require_once(ABSPATH . 'wp-admin/includes/class-wp-upgrader.php');
29
 
30
+ if ((!defined('FTP_HOST') || !defined('FTP_USER') || !defined('FTP_PASS')) && (get_filesystem_method(array(), false) != 'direct'))
31
+ {
32
+ return array(
33
+ 'error' => 'Failed, please <a target="_blank" href="http://managewp.com/user-guide#ftp">add FTP details</a></a>'
34
+ );
35
+ }
36
+
37
+
38
  WP_Filesystem();
39
  global $wp_version, $wp_filesystem;
40
  $upgrader = new WP_Upgrader();