Version Description
Download this release
Release Info
Developer | danielbachhuber |
Plugin | The WP Remote WordPress Plugin |
Version | 2.6.6 |
Comparing to | |
See all releases |
Code changes from version 2.6.5 to 2.6.6
- plugin.php +1 -1
- readme.txt +5 -1
- wprp.api.php +4 -2
- wprp.plugins.php +0 -18
- wprp.themes.php +0 -18
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.6.
|
7 |
Author: Human Made Limited
|
8 |
Author URI: http://hmn.md/
|
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.6.6
|
7 |
Author: Human Made Limited
|
8 |
Author URI: http://hmn.md/
|
9 |
*/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: humanmade, willmot, joehoyle, danielbachhuber, mattheu, pauldewout
|
|
3 |
Tags: wpremote, remote administration, multiple wordpress
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.7
|
6 |
-
Stable tag: 2.6.
|
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 |
|
@@ -37,6 +37,10 @@ You can email us at support@wpremote.com for support.
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
|
|
40 |
#### 2.6.5 (23 October 2013)
|
41 |
|
42 |
* Incorporated a more reliable plugin re-activation process after update.
|
3 |
Tags: wpremote, remote administration, multiple wordpress
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.7
|
6 |
+
Stable tag: 2.6.6
|
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 |
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
#### 2.6.6 (23 October 2013)
|
41 |
+
|
42 |
+
* Bug fix: Due to some files moving around, WP Remote wasn't able to properly update the current version of the plugin.
|
43 |
+
|
44 |
#### 2.6.5 (23 October 2013)
|
45 |
|
46 |
* Incorporated a more reliable plugin re-activation process after update.
|
wprp.api.php
CHANGED
@@ -83,6 +83,8 @@ if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG )
|
|
83 |
// TODO what about if admin use doesn't exists?
|
84 |
wp_set_current_user( 1 );
|
85 |
|
|
|
|
|
86 |
$actions = array();
|
87 |
|
88 |
foreach( WPR_API_Request::get_actions() as $action ) {
|
@@ -135,7 +137,7 @@ foreach( WPR_API_Request::get_actions() as $action ) {
|
|
135 |
|
136 |
case 'get_plugins' :
|
137 |
|
138 |
-
$actions[$action] =
|
139 |
|
140 |
break;
|
141 |
|
@@ -175,7 +177,7 @@ foreach( WPR_API_Request::get_actions() as $action ) {
|
|
175 |
|
176 |
case 'get_themes' :
|
177 |
|
178 |
-
$actions[$action] =
|
179 |
|
180 |
break;
|
181 |
|
83 |
// TODO what about if admin use doesn't exists?
|
84 |
wp_set_current_user( 1 );
|
85 |
|
86 |
+
include_once ( ABSPATH . 'wp-admin/includes/admin.php' );
|
87 |
+
|
88 |
$actions = array();
|
89 |
|
90 |
foreach( WPR_API_Request::get_actions() as $action ) {
|
137 |
|
138 |
case 'get_plugins' :
|
139 |
|
140 |
+
$actions[$action] = _wprp_get_plugins();
|
141 |
|
142 |
break;
|
143 |
|
177 |
|
178 |
case 'get_themes' :
|
179 |
|
180 |
+
$actions[$action] = _wprp_get_themes();
|
181 |
|
182 |
break;
|
183 |
|
wprp.plugins.php
CHANGED
@@ -74,9 +74,6 @@ function _wprp_update_plugin( $plugin ) {
|
|
74 |
require_once ( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
75 |
require_once WPRP_PLUGIN_PATH . 'inc/class-wprp-plugin-upgrader-skin.php';
|
76 |
|
77 |
-
if ( ! _wprp_supports_plugin_upgrade() )
|
78 |
-
return array( 'status' => 'error', 'error' => 'WordPress version too old for plugin upgrades' );
|
79 |
-
|
80 |
// check for filesystem access
|
81 |
if ( ! _wpr_check_filesystem_access() )
|
82 |
return array( 'status' => 'error', 'error' => 'The filesystem is not writable with the supplied credentials' );
|
@@ -218,18 +215,3 @@ function _wprp_uninstall_plugin( $plugin ) {
|
|
218 |
}
|
219 |
|
220 |
}
|
221 |
-
|
222 |
-
/**
|
223 |
-
* Check if the site can support plugin upgrades
|
224 |
-
*
|
225 |
-
* @todo should probably check if we have direct filesystem access
|
226 |
-
* @todo can we remove support for versions which don't support Plugin_Upgrader
|
227 |
-
* @return bool
|
228 |
-
*/
|
229 |
-
function _wprp_supports_plugin_upgrade() {
|
230 |
-
|
231 |
-
include_once ( ABSPATH . 'wp-admin/includes/admin.php' );
|
232 |
-
|
233 |
-
return class_exists( 'Plugin_Upgrader' );
|
234 |
-
|
235 |
-
}
|
74 |
require_once ( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
75 |
require_once WPRP_PLUGIN_PATH . 'inc/class-wprp-plugin-upgrader-skin.php';
|
76 |
|
|
|
|
|
|
|
77 |
// check for filesystem access
|
78 |
if ( ! _wpr_check_filesystem_access() )
|
79 |
return array( 'status' => 'error', 'error' => 'The filesystem is not writable with the supplied credentials' );
|
215 |
}
|
216 |
|
217 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wprp.themes.php
CHANGED
@@ -158,9 +158,6 @@ function _wprp_update_theme( $theme ) {
|
|
158 |
require_once ( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
159 |
require_once WPRP_PLUGIN_PATH . 'inc/class-wprp-theme-upgrader-skin.php';
|
160 |
|
161 |
-
if ( ! _wprp_supports_theme_upgrade() )
|
162 |
-
return array( 'status' => 'error', 'error' => 'WordPress version too old for theme upgrades' );
|
163 |
-
|
164 |
// check for filesystem access
|
165 |
if ( ! _wpr_check_filesystem_access() )
|
166 |
return array( 'status' => 'error', 'error' => 'The filesystem is not writable with the supplied credentials' );
|
@@ -222,18 +219,3 @@ function _wprp_delete_theme( $theme ) {
|
|
222 |
|
223 |
return array( 'status' => 'success' );
|
224 |
}
|
225 |
-
|
226 |
-
/**
|
227 |
-
* Check if the site can support theme upgrades
|
228 |
-
*
|
229 |
-
* @todo should probably check if we have direct filesystem access
|
230 |
-
* @todo can we remove support for versions which don't support Theme_Upgrader
|
231 |
-
* @return bool
|
232 |
-
*/
|
233 |
-
function _wprp_supports_theme_upgrade() {
|
234 |
-
|
235 |
-
include_once ( ABSPATH . 'wp-admin/includes/admin.php' );
|
236 |
-
|
237 |
-
return class_exists( 'Theme_Upgrader' );
|
238 |
-
|
239 |
-
}
|
158 |
require_once ( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
159 |
require_once WPRP_PLUGIN_PATH . 'inc/class-wprp-theme-upgrader-skin.php';
|
160 |
|
|
|
|
|
|
|
161 |
// check for filesystem access
|
162 |
if ( ! _wpr_check_filesystem_access() )
|
163 |
return array( 'status' => 'error', 'error' => 'The filesystem is not writable with the supplied credentials' );
|
219 |
|
220 |
return array( 'status' => 'success' );
|
221 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|