Version Description
Download this release
Release Info
| Developer | willmot |
| Plugin | |
| Version | 2.4.4 |
| Comparing to | |
| See all releases | |
Code changes from version 2.4.3 to 2.4.4
- plugin.php +38 -2
- readme.txt +3 -2
- wprp.plugins.php +20 -3
- wprp.themes.php +4 -1
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.4.
|
| 7 |
Author: Human Made Limited
|
| 8 |
Author URI: http://hmn.md/
|
| 9 |
*/
|
|
@@ -43,6 +43,7 @@ if ( version_compare( phpversion(), '5.2.4', '<' ) ) {
|
|
| 43 |
}
|
| 44 |
|
| 45 |
require_once( WPRP_PLUGIN_PATH . '/wprp.admin.php' );
|
|
|
|
| 46 |
|
| 47 |
// Backups require 3.1
|
| 48 |
if ( version_compare( get_bloginfo( 'version' ), '3.1', '>=' ) ) {
|
|
@@ -52,6 +53,7 @@ if ( version_compare( get_bloginfo( 'version' ), '3.1', '>=' ) ) {
|
|
| 52 |
|
| 53 |
$plugin_file = dirname( plugin_dir_path( HMBKP_PLUGIN_PATH ) ) . 'plugin.php';
|
| 54 |
|
|
|
|
| 55 |
deactivate_plugins( array( 'backupwordpress/plugin.php' ), true );
|
| 56 |
|
| 57 |
function wprp_backupwordpress_deactivated_notice() {
|
|
@@ -76,6 +78,7 @@ if ( version_compare( get_bloginfo( 'version' ), '3.1', '>=' ) ) {
|
|
| 76 |
remove_action( 'admin_init', 'hmbkp_setup_default_schedules' );
|
| 77 |
remove_filter( 'all_plugins', 'hmbkp_plugin_row', 10 );
|
| 78 |
remove_filter( 'plugin_action_links', 'hmbkp_plugin_action_link', 10, 2 );
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
// Don't include when doing a core update
|
|
@@ -129,7 +132,7 @@ if ( empty( $_GET['action'] ) || $_GET['action'] != 'do-core-upgrade' ) :
|
|
| 129 |
|
| 130 |
}
|
| 131 |
|
| 132 |
-
|
| 133 |
|
| 134 |
var $feedback;
|
| 135 |
var $error;
|
|
@@ -174,6 +177,39 @@ function wprp_catch_api_call() {
|
|
| 174 |
}
|
| 175 |
add_action( 'init', 'wprp_catch_api_call', 1 );
|
| 176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
function _wprp_upgrade_core() {
|
| 178 |
|
| 179 |
include_once ( ABSPATH . 'wp-admin/includes/admin.php' );
|
| 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.4.4
|
| 7 |
Author: Human Made Limited
|
| 8 |
Author URI: http://hmn.md/
|
| 9 |
*/
|
| 43 |
}
|
| 44 |
|
| 45 |
require_once( WPRP_PLUGIN_PATH . '/wprp.admin.php' );
|
| 46 |
+
require_once( WPRP_PLUGIN_PATH . '/wprp.compatability.php' );
|
| 47 |
|
| 48 |
// Backups require 3.1
|
| 49 |
if ( version_compare( get_bloginfo( 'version' ), '3.1', '>=' ) ) {
|
| 53 |
|
| 54 |
$plugin_file = dirname( plugin_dir_path( HMBKP_PLUGIN_PATH ) ) . 'plugin.php';
|
| 55 |
|
| 56 |
+
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
| 57 |
deactivate_plugins( array( 'backupwordpress/plugin.php' ), true );
|
| 58 |
|
| 59 |
function wprp_backupwordpress_deactivated_notice() {
|
| 78 |
remove_action( 'admin_init', 'hmbkp_setup_default_schedules' );
|
| 79 |
remove_filter( 'all_plugins', 'hmbkp_plugin_row', 10 );
|
| 80 |
remove_filter( 'plugin_action_links', 'hmbkp_plugin_action_link', 10, 2 );
|
| 81 |
+
|
| 82 |
}
|
| 83 |
|
| 84 |
// Don't include when doing a core update
|
| 132 |
|
| 133 |
}
|
| 134 |
|
| 135 |
+
class WPRP_Core_Upgrader_Skin extends WP_Upgrader_Skin {
|
| 136 |
|
| 137 |
var $feedback;
|
| 138 |
var $error;
|
| 177 |
}
|
| 178 |
add_action( 'init', 'wprp_catch_api_call', 1 );
|
| 179 |
|
| 180 |
+
$plugin_data = get_plugin_data( __FILE__ );
|
| 181 |
+
|
| 182 |
+
// define the plugin version
|
| 183 |
+
define( 'WPRP_VERSION', $plugin_data['Version'] );
|
| 184 |
+
|
| 185 |
+
// Fire the update action
|
| 186 |
+
//if ( WPR_VERSION != get_option( 'wpr_plugin_version' ) )
|
| 187 |
+
wprp_update();
|
| 188 |
+
|
| 189 |
+
/**
|
| 190 |
+
* Run any update code and update the current version in the db
|
| 191 |
+
*
|
| 192 |
+
* @access public
|
| 193 |
+
* @return void
|
| 194 |
+
*/
|
| 195 |
+
function wprp_update() {
|
| 196 |
+
|
| 197 |
+
/**
|
| 198 |
+
* Remove the old _wpremote_backups directory
|
| 199 |
+
*/
|
| 200 |
+
$uploads_dir = wp_upload_dir();
|
| 201 |
+
|
| 202 |
+
$old_wpremote_dir = trailingslashit( $uploads_dir['basedir'] ) . '_wpremote_backups';
|
| 203 |
+
|
| 204 |
+
if ( file_exists( $old_wpremote_dir ) && function_exists( 'hmbkp_rmdirtree' ) )
|
| 205 |
+
hmbkp_rmdirtree( $old_wpremote_dir );
|
| 206 |
+
|
| 207 |
+
// Update the version stored in the db
|
| 208 |
+
if ( get_option( 'wprp_plugin_version' ) !== WPRP_VERSION )
|
| 209 |
+
update_option( 'wprp_plugin_version', WPRP_VERSION );
|
| 210 |
+
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
function _wprp_upgrade_core() {
|
| 214 |
|
| 215 |
include_once ( ABSPATH . 'wp-admin/includes/admin.php' );
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: humanmade, joehoyle, mattheu, tcrsavage, willmot
|
|
| 3 |
Tags: wpremote, remote administration, multiple wordpress
|
| 4 |
Requires at least: 2.9
|
| 5 |
Tested up to: 3.5
|
| 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 |
|
|
@@ -31,13 +31,14 @@ You can email us at support@wpremote.com for support.
|
|
| 31 |
|
| 32 |
== Changelog ==
|
| 33 |
|
| 34 |
-
#### 2.4.1
|
| 35 |
|
| 36 |
* Minor bug fixes
|
| 37 |
|
| 38 |
#### 2.4
|
| 39 |
|
| 40 |
* Backups are now powered by BackUpWordPress.
|
|
|
|
| 41 |
* The BackUpWordPress Plugin can no longer be run alongside WP Remote.
|
| 42 |
* Emphasise that you can deactivate the plugin to clear your API key.
|
| 43 |
|
| 3 |
Tags: wpremote, remote administration, multiple wordpress
|
| 4 |
Requires at least: 2.9
|
| 5 |
Tested up to: 3.5
|
| 6 |
+
Stable tag: 2.4.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 |
|
| 31 |
|
| 32 |
== Changelog ==
|
| 33 |
|
| 34 |
+
#### 2.4.1 - 2.4.3
|
| 35 |
|
| 36 |
* Minor bug fixes
|
| 37 |
|
| 38 |
#### 2.4
|
| 39 |
|
| 40 |
* Backups are now powered by BackUpWordPress.
|
| 41 |
+
* We now detect the popular security plugins that can affect WP Remote and show a message with a link to how to resolve the common issues.
|
| 42 |
* The BackUpWordPress Plugin can no longer be run alongside WP Remote.
|
| 43 |
* Emphasise that you can deactivate the plugin to clear your API key.
|
| 44 |
|
wprp.plugins.php
CHANGED
|
@@ -191,10 +191,10 @@ function _wpr_add_non_extend_plugin_support( $value ) {
|
|
| 191 |
function _wprp_get_non_extend_plugins_data() {
|
| 192 |
|
| 193 |
return array(
|
| 194 |
-
|
| 195 |
-
'
|
| 196 |
-
|
| 197 |
);
|
|
|
|
| 198 |
}
|
| 199 |
|
| 200 |
function _wpr_get_gravity_form_plugin_data() {
|
|
@@ -217,4 +217,21 @@ function _wpr_get_gravity_form_plugin_data() {
|
|
| 217 |
'new_version' => $version_data['version']
|
| 218 |
);
|
| 219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
}
|
| 191 |
function _wprp_get_non_extend_plugins_data() {
|
| 192 |
|
| 193 |
return array(
|
| 194 |
+
'gravity_forms' => '_wpr_get_gravity_form_plugin_data',
|
| 195 |
+
'backupbuddy' => '_wpr_get_backupbuddy_plugin_data'
|
|
|
|
| 196 |
);
|
| 197 |
+
|
| 198 |
}
|
| 199 |
|
| 200 |
function _wpr_get_gravity_form_plugin_data() {
|
| 217 |
'new_version' => $version_data['version']
|
| 218 |
);
|
| 219 |
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
function _wpr_get_backupbuddy_plugin_data() {
|
| 223 |
+
|
| 224 |
+
if ( !class_exists('pb_backupbuddy') || !is_a(pb_backupbuddy::$_updater, 'pb_backupbuddy_updater') || !method_exists(pb_backupbuddy::$_updater, 'check_for_updates') )
|
| 225 |
+
return false;
|
| 226 |
+
|
| 227 |
+
$current_version = pb_backupbuddy::settings('version');
|
| 228 |
+
$update_data = pb_backupbuddy::$_updater->check_for_updates();
|
| 229 |
+
|
| 230 |
+
if ($update_data->key_status != 'ok' || version_compare($update_data->new_version, $current_version, '<='))
|
| 231 |
+
return false;
|
| 232 |
+
|
| 233 |
+
$update_data->plugin_location = $update_data->slug; // needed in _wpr_add_non_extend_plugin_support()
|
| 234 |
+
|
| 235 |
+
return $update_data;
|
| 236 |
+
|
| 237 |
}
|
wprp.themes.php
CHANGED
|
@@ -10,7 +10,10 @@ function _wprp_get_themes() {
|
|
| 10 |
require_once( ABSPATH . '/wp-admin/includes/theme.php' );
|
| 11 |
|
| 12 |
// Get all themes
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
// Get the list of active themes
|
| 16 |
$active = get_option( 'current_theme' );
|
| 10 |
require_once( ABSPATH . '/wp-admin/includes/theme.php' );
|
| 11 |
|
| 12 |
// Get all themes
|
| 13 |
+
if ( function_exists( 'wp_get_themes' ) )
|
| 14 |
+
$themes = wp_get_themes();
|
| 15 |
+
else
|
| 16 |
+
$themes = get_themes();
|
| 17 |
|
| 18 |
// Get the list of active themes
|
| 19 |
$active = get_option( 'current_theme' );
|
