Version Description
Download this release
Release Info
Developer | jeramynirodha |
Plugin | The WP Remote WordPress Plugin |
Version | 2.8.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.8.4 to 2.8.4.2
- inc/class-wprp-automatic-upgrader-skin.php +23 -0
- plugin.php +1 -1
- readme.txt +9 -1
- wprp.plugins.php +28 -7
inc/class-wprp-automatic-upgrader-skin.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class WPRP_Automatic_Upgrader_Skin extends Automatic_Upgrader_Skin {
|
4 |
+
|
5 |
+
var $feedback;
|
6 |
+
var $error;
|
7 |
+
|
8 |
+
function error( $error ) {
|
9 |
+
$this->error = $error;
|
10 |
+
}
|
11 |
+
|
12 |
+
function feedback( $feedback ) {
|
13 |
+
$this->feedback = $feedback;
|
14 |
+
}
|
15 |
+
|
16 |
+
function before() { }
|
17 |
+
|
18 |
+
function after() { }
|
19 |
+
|
20 |
+
function header() { }
|
21 |
+
|
22 |
+
function footer() { }
|
23 |
+
}
|
plugin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: WP Remote
|
5 |
Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
|
6 |
-
Version: 2.8.4
|
7 |
Author: maekit
|
8 |
Author URI: https://maek.it/
|
9 |
*/
|
3 |
/*
|
4 |
Plugin Name: WP Remote
|
5 |
Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
|
6 |
+
Version: 2.8.4.2
|
7 |
Author: maekit
|
8 |
Author URI: https://maek.it/
|
9 |
*/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: jeramynirodha, bmett, humanmade, willmot, joehoyle, danielbachhube
|
|
3 |
Tags: wpremote, remote administration, multiple wordpress
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 2.8.4
|
7 |
|
8 |
WP Remote is a free web app that enables you to easily manage all of your WordPress powered sites from one place.
|
9 |
|
@@ -69,6 +69,14 @@ You can email us at support@wpremote.com for support.
|
|
69 |
|
70 |
== Changelog ==
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
#### 2.8.4 (3 December 2017)
|
73 |
|
74 |
* Modify error message response in certain situations
|
3 |
Tags: wpremote, remote administration, multiple wordpress
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 2.8.4.2
|
7 |
|
8 |
WP Remote is a free web app that enables you to easily manage all of your WordPress powered sites from one place.
|
9 |
|
69 |
|
70 |
== Changelog ==
|
71 |
|
72 |
+
#### 2.8.4.2 (9 January 2019)
|
73 |
+
|
74 |
+
* Backport WPEngine bug fix from v3.0.a
|
75 |
+
|
76 |
+
#### 2.8.4.1 (3 December 2017)
|
77 |
+
|
78 |
+
* Correct handling of up_to_date error
|
79 |
+
|
80 |
#### 2.8.4 (3 December 2017)
|
81 |
|
82 |
* Modify error message response in certain situations
|
wprp.plugins.php
CHANGED
@@ -91,7 +91,8 @@ function _wprp_update_plugin( $plugin_file, $args ) {
|
|
91 |
|
92 |
include_once ( ABSPATH . 'wp-admin/includes/admin.php' );
|
93 |
require_once ( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
94 |
-
|
|
|
95 |
|
96 |
// check for filesystem access
|
97 |
if ( ! _wpr_check_filesystem_access() )
|
@@ -146,11 +147,24 @@ function _wprp_update_plugin( $plugin_file, $args ) {
|
|
146 |
wp_update_plugins();
|
147 |
}
|
148 |
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
|
155 |
if ( isset($manage_wp_plugin_update) && $manage_wp_plugin_update )
|
156 |
remove_filter( 'pre_site_transient_update_plugins', '_wprp_forcably_filter_update_plugins' );
|
@@ -164,7 +178,14 @@ function _wprp_update_plugin( $plugin_file, $args ) {
|
|
164 |
if (is_wp_error($skin->error)) {
|
165 |
return $skin->error;
|
166 |
}
|
167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
} else if ( is_wp_error( $result ) ) {
|
169 |
return $result;
|
170 |
} else if ( ( ! $result && ! is_null( $result ) ) || $data ) {
|
91 |
|
92 |
include_once ( ABSPATH . 'wp-admin/includes/admin.php' );
|
93 |
require_once ( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
94 |
+
require_once WPRP_PLUGIN_PATH . 'inc/class-wprp-plugin-upgrader-skin.php';
|
95 |
+
require_once WPRP_PLUGIN_PATH . 'inc/class-wprp-automatic-upgrader-skin.php';
|
96 |
|
97 |
// check for filesystem access
|
98 |
if ( ! _wpr_check_filesystem_access() )
|
147 |
wp_update_plugins();
|
148 |
}
|
149 |
|
150 |
+
// Remove the Language Upgrader
|
151 |
+
remove_action('upgrader_process_complete', array('Language_Pack_Upgrader', 'async_upgrade'), 20);
|
152 |
+
|
153 |
+
// Do the upgrade
|
154 |
+
ob_start();
|
155 |
+
$result = $upgrader->upgrade($plugin_file);
|
156 |
+
if ($data = ob_get_contents()) {
|
157 |
+
ob_end_clean();
|
158 |
+
}
|
159 |
+
|
160 |
+
// Run the language upgrader
|
161 |
+
ob_start();
|
162 |
+
$skin2 = new WPRP_Automatic_Upgrader_Skin();
|
163 |
+
$lang_upgrader = new Language_Pack_Upgrader($skin2);
|
164 |
+
$result2 = $lang_upgrader->upgrade($upgrader);
|
165 |
+
if ($data2 = ob_get_contents()) {
|
166 |
+
ob_end_clean();
|
167 |
+
}
|
168 |
|
169 |
if ( isset($manage_wp_plugin_update) && $manage_wp_plugin_update )
|
170 |
remove_filter( 'pre_site_transient_update_plugins', '_wprp_forcably_filter_update_plugins' );
|
178 |
if (is_wp_error($skin->error)) {
|
179 |
return $skin->error;
|
180 |
}
|
181 |
+
if ($skin->error == 'up_to_date') {
|
182 |
+
return new WP_Error('up_to_date', __('Plugin already up to date.', 'wpremote'));
|
183 |
+
}
|
184 |
+
$msg = __('Unknown error updating plugin.', 'wpremote');
|
185 |
+
if (is_string($skin->error)) {
|
186 |
+
$msg = $skin->error;
|
187 |
+
}
|
188 |
+
return new WP_Error('plugin-upgrader-skin', $msg);
|
189 |
} else if ( is_wp_error( $result ) ) {
|
190 |
return $result;
|
191 |
} else if ( ( ! $result && ! is_null( $result ) ) || $data ) {
|