Version Description
- Included support for WordPress 3.2 partial updates
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 3.9.3 |
| Comparing to | |
| See all releases | |
Code changes from version 3.9.2 to 3.9.3
- init.php +2 -2
- installer.class.php +81 -63
- readme.txt +7 -0
- stats.class.php +11 -10
- version +1 -1
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. Visit <a href="http://managewp.com">ManageWP.com</a> to sign up.
|
| 6 |
Author: Prelovac Media
|
| 7 |
-
Version: 3.9.
|
| 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.9.
|
| 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. Visit <a href="http://managewp.com">ManageWP.com</a> to sign up.
|
| 6 |
Author: Prelovac Media
|
| 7 |
+
Version: 3.9.3
|
| 8 |
Author URI: http://www.prelovac.com
|
| 9 |
*/
|
| 10 |
|
| 20 |
**************************************************************/
|
| 21 |
|
| 22 |
|
| 23 |
+
define('MMB_WORKER_VERSION', '3.9.3');
|
| 24 |
|
| 25 |
global $wpdb, $mmb_plugin_dir, $mmb_plugin_url;
|
| 26 |
|
installer.class.php
CHANGED
|
@@ -207,81 +207,99 @@ class MMB_Installer extends MMB_Core
|
|
| 207 |
if($current_update != false){
|
| 208 |
global $mmb_wp_version, $wp_filesystem, $wp_version;
|
| 209 |
|
| 210 |
-
if(
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
$result = wp_update_core($current_update);
|
| 214 |
-
if(is_wp_error($result)){
|
| 215 |
-
return array(
|
| 216 |
-
'error' => $this->mmb_get_error($result)
|
| 217 |
-
);
|
| 218 |
-
}
|
| 219 |
-
else
|
| 220 |
-
return array(
|
| 221 |
-
'upgraded' => ' Upgraded successfully.'
|
| 222 |
-
);
|
| 223 |
-
}
|
| 224 |
-
}
|
| 225 |
-
|
| 226 |
-
if(class_exists('WP_Upgrader')){
|
| 227 |
-
$upgrader = new WP_Upgrader();
|
| 228 |
|
| 229 |
-
|
| 230 |
-
|
|
|
|
| 231 |
return array(
|
| 232 |
-
'
|
| 233 |
);
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
ABSPATH,
|
| 237 |
-
WP_CONTENT_DIR
|
| 238 |
-
));
|
| 239 |
-
if (is_wp_error($res))
|
| 240 |
return array(
|
| 241 |
-
'
|
| 242 |
);
|
| 243 |
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
|
| 252 |
-
|
| 253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
return array(
|
| 255 |
-
'
|
| 256 |
);
|
| 257 |
-
|
| 258 |
-
if (!$wp_filesystem->copy($working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true)) {
|
| 259 |
-
$wp_filesystem->delete($working_dir, true);
|
| 260 |
return array(
|
| 261 |
-
'error' => '
|
| 262 |
);
|
| 263 |
}
|
| 264 |
-
|
| 265 |
-
$wp_filesystem->chmod($wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE);
|
| 266 |
-
|
| 267 |
-
require(ABSPATH . 'wp-admin/includes/update-core.php');
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
$update_core = update_core($working_dir, $wp_dir);
|
| 271 |
-
ob_end_clean();
|
| 272 |
-
|
| 273 |
-
if (is_wp_error($update_core))
|
| 274 |
-
return array(
|
| 275 |
-
'error' => $this->mmb_get_error($update_core)
|
| 276 |
-
);
|
| 277 |
-
ob_end_flush();
|
| 278 |
-
return array(
|
| 279 |
-
'upgraded' => 'Upgraded successfully.'
|
| 280 |
-
);
|
| 281 |
-
} else {
|
| 282 |
-
return array(
|
| 283 |
-
'error' => 'Upgrade failed.'
|
| 284 |
-
);
|
| 285 |
}
|
| 286 |
} else {
|
| 287 |
return array(
|
| 207 |
if($current_update != false){
|
| 208 |
global $mmb_wp_version, $wp_filesystem, $wp_version;
|
| 209 |
|
| 210 |
+
if (version_compare($wp_version, '3.1.9', '>')) {
|
| 211 |
+
if(!class_exists('Core_Upgrader'))
|
| 212 |
+
include_once(ABSPATH.'wp-admin/includes/class-wp-upgrader.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
|
| 214 |
+
$core = new Core_Upgrader();
|
| 215 |
+
$result = $core->upgrade($current_update);
|
| 216 |
+
if(is_wp_error($result)){
|
| 217 |
return array(
|
| 218 |
+
'error' => $this->mmb_get_error($result)
|
| 219 |
);
|
| 220 |
+
}
|
| 221 |
+
else
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
return array(
|
| 223 |
+
'upgraded' => ' Upgraded successfully.'
|
| 224 |
);
|
| 225 |
|
| 226 |
+
} else {
|
| 227 |
+
if(!class_exists('WP_Upgrader')){
|
| 228 |
+
include_once(ABSPATH.'wp-admin/includes/update.php');
|
| 229 |
+
if(function_exists('wp_update_core')){
|
| 230 |
+
$result = wp_update_core($current_update);
|
| 231 |
+
if(is_wp_error($result)){
|
| 232 |
+
return array(
|
| 233 |
+
'error' => $this->mmb_get_error($result)
|
| 234 |
+
);
|
| 235 |
+
}
|
| 236 |
+
else
|
| 237 |
+
return array(
|
| 238 |
+
'upgraded' => ' Upgraded successfully.'
|
| 239 |
+
);
|
| 240 |
+
}
|
| 241 |
+
}
|
| 242 |
|
| 243 |
+
if(class_exists('WP_Upgrader')){
|
| 244 |
+
$upgrader = new WP_Upgrader();
|
| 245 |
+
|
| 246 |
+
// Is an update available?
|
| 247 |
+
if (!isset($current_update->response) || $current_update->response == 'latest')
|
| 248 |
+
return array(
|
| 249 |
+
'upgraded' => ' Upgraded successfully.'
|
| 250 |
+
);
|
| 251 |
+
|
| 252 |
+
$res = $upgrader->fs_connect(array(
|
| 253 |
+
ABSPATH,
|
| 254 |
+
WP_CONTENT_DIR
|
| 255 |
+
));
|
| 256 |
+
if (is_wp_error($res))
|
| 257 |
+
return array(
|
| 258 |
+
'error' => $this->mmb_get_error($res)
|
| 259 |
+
);
|
| 260 |
+
|
| 261 |
+
$wp_dir = trailingslashit($wp_filesystem->abspath());
|
| 262 |
+
|
| 263 |
+
$download = $upgrader->download_package($current_update->package);
|
| 264 |
+
if (is_wp_error($download))
|
| 265 |
+
return array(
|
| 266 |
+
'error' => $this->mmb_get_error($download)
|
| 267 |
+
);
|
| 268 |
+
|
| 269 |
+
$working_dir = $upgrader->unpack_package($download);
|
| 270 |
+
if (is_wp_error($working_dir))
|
| 271 |
+
return array(
|
| 272 |
+
'error' => $this->mmb_get_error($working_dir)
|
| 273 |
+
);
|
| 274 |
+
|
| 275 |
+
if (!$wp_filesystem->copy($working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true)) {
|
| 276 |
+
$wp_filesystem->delete($working_dir, true);
|
| 277 |
+
return array(
|
| 278 |
+
'error' => 'Unable to move update files.'
|
| 279 |
+
);
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
$wp_filesystem->chmod($wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE);
|
| 283 |
+
|
| 284 |
+
require(ABSPATH . 'wp-admin/includes/update-core.php');
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
$update_core = update_core($working_dir, $wp_dir);
|
| 288 |
+
ob_end_clean();
|
| 289 |
+
|
| 290 |
+
if (is_wp_error($update_core))
|
| 291 |
+
return array(
|
| 292 |
+
'error' => $this->mmb_get_error($update_core)
|
| 293 |
+
);
|
| 294 |
+
ob_end_flush();
|
| 295 |
return array(
|
| 296 |
+
'upgraded' => 'Upgraded successfully.'
|
| 297 |
);
|
| 298 |
+
} else {
|
|
|
|
|
|
|
| 299 |
return array(
|
| 300 |
+
'error' => 'Upgrade failed.'
|
| 301 |
);
|
| 302 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 303 |
}
|
| 304 |
} else {
|
| 305 |
return array(
|
readme.txt
CHANGED
|
@@ -30,6 +30,13 @@ API for developers available at [ManageWP.com/API](http://managewp.com/api "Mana
|
|
| 30 |
|
| 31 |
== Changelog ==
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
= 3.9.1 =
|
| 34 |
* Support for sub-users (limited access users)
|
| 35 |
* Bulk add user
|
| 30 |
|
| 31 |
== Changelog ==
|
| 32 |
|
| 33 |
+
= 3.9.3 =
|
| 34 |
+
* Included support for WordPress 3.2 partial updates
|
| 35 |
+
|
| 36 |
+
= 3.9.2 =
|
| 37 |
+
* Fixed problem with full backups
|
| 38 |
+
* Fixed problem with wordpress dev version upgrades
|
| 39 |
+
|
| 40 |
= 3.9.1 =
|
| 41 |
* Support for sub-users (limited access users)
|
| 42 |
* Bulk add user
|
stats.class.php
CHANGED
|
@@ -27,18 +27,18 @@ class MMB_Stats extends MMB_Core
|
|
| 27 |
{
|
| 28 |
$num = extract($params);
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
@wp_update_plugins();
|
| 33 |
@wp_update_themes();
|
| 34 |
@wp_version_check();
|
| 35 |
}
|
| 36 |
|
| 37 |
-
global $wpdb, $mmb_wp_version, $mmb_plugin_dir, $wp_version;
|
| 38 |
$stats = array();
|
| 39 |
|
| 40 |
//define constants
|
| 41 |
-
$num_pending_comments =
|
| 42 |
$num_approved_comments = 3;
|
| 43 |
$num_spam_comments = 0;
|
| 44 |
$num_draft_comments = 0;
|
|
@@ -48,21 +48,22 @@ class MMB_Stats extends MMB_Core
|
|
| 48 |
|
| 49 |
$stats['worker_version'] = MMB_WORKER_VERSION;
|
| 50 |
$stats['wordpress_version'] = $wp_version;
|
|
|
|
| 51 |
$stats['wp_multisite'] = $this->mmb_multisite;
|
| 52 |
$stats['php_version'] = phpversion();
|
| 53 |
$stats['mysql_version'] = $wpdb->db_version();
|
| 54 |
|
| 55 |
-
|
| 56 |
$updates = get_core_updates();
|
| 57 |
-
|
| 58 |
$current_transient = $updates[0];
|
| 59 |
if ($current_transient->response == "development" || version_compare($wp_version, $current_transient->current, '<')) {
|
| 60 |
$current_transient->current_version = $wp_version;
|
| 61 |
$stats['core_updates'] = $current_transient;
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
}
|
| 67 |
|
| 68 |
$mmb_user_hits = get_option('user_hit_count');
|
| 27 |
{
|
| 28 |
$num = extract($params);
|
| 29 |
|
| 30 |
+
if ($refresh == 'transient') {
|
| 31 |
+
include_once(ABSPATH . 'wp-includes/update.php');
|
| 32 |
@wp_update_plugins();
|
| 33 |
@wp_update_themes();
|
| 34 |
@wp_version_check();
|
| 35 |
}
|
| 36 |
|
| 37 |
+
global $wpdb, $mmb_wp_version, $mmb_plugin_dir, $wp_version, $wp_local_package;
|
| 38 |
$stats = array();
|
| 39 |
|
| 40 |
//define constants
|
| 41 |
+
$num_pending_comments = 10;
|
| 42 |
$num_approved_comments = 3;
|
| 43 |
$num_spam_comments = 0;
|
| 44 |
$num_draft_comments = 0;
|
| 48 |
|
| 49 |
$stats['worker_version'] = MMB_WORKER_VERSION;
|
| 50 |
$stats['wordpress_version'] = $wp_version;
|
| 51 |
+
$stats['wordpress_locale_pckg'] = $wp_local_package;
|
| 52 |
$stats['wp_multisite'] = $this->mmb_multisite;
|
| 53 |
$stats['php_version'] = phpversion();
|
| 54 |
$stats['mysql_version'] = $wpdb->db_version();
|
| 55 |
|
| 56 |
+
if (function_exists('get_core_updates')) {
|
| 57 |
$updates = get_core_updates();
|
| 58 |
+
if (!empty($updates)) {
|
| 59 |
$current_transient = $updates[0];
|
| 60 |
if ($current_transient->response == "development" || version_compare($wp_version, $current_transient->current, '<')) {
|
| 61 |
$current_transient->current_version = $wp_version;
|
| 62 |
$stats['core_updates'] = $current_transient;
|
| 63 |
+
} else
|
| 64 |
+
$stats['core_updates'] = false;
|
| 65 |
+
} else
|
| 66 |
+
$stats['core_updates'] = false;
|
| 67 |
}
|
| 68 |
|
| 69 |
$mmb_user_hits = get_option('user_hit_count');
|
version
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
3.9.
|
| 1 |
+
3.9.3
|
