Version Description
Download this release
Release Info
Developer | jeramynirodha |
Plugin | The WP Remote WordPress Plugin |
Version | 2.8.0 |
Comparing to | |
See all releases |
Code changes from version 2.7.9.2 to 2.8.0
- plugin.php +1 -1
- readme.txt +6 -2
- wprp.plugins.php +22 -19
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>. <strong>Deactivate to clear your API Key.</strong>
|
6 |
-
Version: 2.
|
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>. <strong>Deactivate to clear your API Key.</strong>
|
6 |
+
Version: 2.8.0
|
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.8.1
|
6 |
-
Stable tag: 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 |
|
@@ -72,9 +72,13 @@ You can email us at support@wpremote.com for support.
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
|
|
75 |
#### 2.7.9.2 (25 August 2017)
|
76 |
|
77 |
-
* Bug fix for php
|
78 |
|
79 |
#### 2.7.9.1 (25 August 2017)
|
80 |
|
3 |
Tags: wpremote, remote administration, multiple wordpress
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.8.1
|
6 |
+
Stable tag: 2.8.0
|
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 |
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
#### 2.8.0 (30 August 2017)
|
76 |
+
|
77 |
+
* Modify plugin activation and return plugin active status to WP Remote
|
78 |
+
|
79 |
#### 2.7.9.2 (25 August 2017)
|
80 |
|
81 |
+
* Bug fix for php 5.4 and lower
|
82 |
|
83 |
#### 2.7.9.1 (25 August 2017)
|
84 |
|
wprp.plugins.php
CHANGED
@@ -151,27 +151,30 @@ function _wprp_update_plugin( $plugin_file, $args ) {
|
|
151 |
$data = ob_get_contents();
|
152 |
ob_clean();
|
153 |
|
154 |
-
if ( $manage_wp_plugin_update )
|
155 |
remove_filter( 'pre_site_transient_update_plugins', '_wprp_forcably_filter_update_plugins' );
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
175 |
}
|
176 |
|
177 |
/**
|
151 |
$data = ob_get_contents();
|
152 |
ob_clean();
|
153 |
|
154 |
+
if ( isset($manage_wp_plugin_update) && $manage_wp_plugin_update )
|
155 |
remove_filter( 'pre_site_transient_update_plugins', '_wprp_forcably_filter_update_plugins' );
|
156 |
|
157 |
+
// If the plugin was activited, we have to re-activate it
|
158 |
+
// but if activate_plugin() fatals, then we'll just have to return 500
|
159 |
+
if ( $is_active )
|
160 |
+
activate_plugin( $plugin_file, '', $is_active_network, true );
|
161 |
+
|
162 |
+
if ( ! empty( $skin->error ) ) {
|
163 |
+
return new WP_Error('plugin-upgrader-skin', $upgrader->strings[$skin->error]);
|
164 |
+
} else if ( is_wp_error( $result ) ) {
|
165 |
+
return $result;
|
166 |
+
} else if ( ( ! $result && ! is_null( $result ) ) || $data ) {
|
167 |
+
return new WP_Error('plugin-update', __('Unknown error updating plugin.', 'wpremote'));
|
168 |
+
}
|
169 |
+
|
170 |
+
$active_status = [
|
171 |
+
'was_active' => $is_active,
|
172 |
+
'was_active_network' => $is_active_network,
|
173 |
+
'is_active' => is_plugin_active( $plugin_file ),
|
174 |
+
'is_active_network' => is_plugin_active_for_network( $plugin_file ),
|
175 |
+
];
|
176 |
+
|
177 |
+
return array( 'status' => 'success', 'active_status' => $active_status );
|
178 |
}
|
179 |
|
180 |
/**
|