The WP Remote WordPress Plugin - Version 2.0.5

Version Description

Download this release

Release Info

Developer willmot
Plugin Icon 128x128 The WP Remote WordPress Plugin
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

Files changed (3) hide show
  1. plugin.php +1 -1
  2. readme.txt +1 -1
  3. wprp.backups.php +7 -4
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>. Deactivate to clear your API Key.
6
- Version: 2.0.4
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>. Deactivate to clear your API Key.
6
+ Version: 2.0.5
7
  Author: Human Made Limited
8
  Author URI: http://hmn.md/
9
  */
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.3.1
6
- Stable tag: 2.0.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
 
3
  Tags: wpremote, remote administration, multiple wordpress
4
  Requires at least: 2.9
5
  Tested up to: 3.3.1
6
+ Stable tag: 2.0.5
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
 
wprp.backups.php CHANGED
@@ -24,8 +24,11 @@ function _wprp_backups_api_call( $action ) {
24
  $upload_dir = wp_upload_dir();
25
 
26
  // Store the backup file in the uploads dir
27
- $backup->path = $upload_dir['basedir'];
28
-
 
 
 
29
  // Set a random backup filename
30
  $backup->archive_filename = md5( time() ) . '.zip';
31
 
@@ -54,8 +57,8 @@ function _wprp_backups_api_call( $action ) {
54
 
55
  $upload_dir = wp_upload_dir();
56
 
57
- if ( ! empty( $_REQUEST['backup'] ) && file_exists( $upload_dir['basedir'] . '/' . $_REQUEST['backup'] ) && substr( $_REQUEST['backup'], -4 ) == '.zip' )
58
- unlink( $upload_dir['basedir'] . '/' . $_REQUEST['backup'] );
59
 
60
  break;
61
 
24
  $upload_dir = wp_upload_dir();
25
 
26
  // Store the backup file in the uploads dir
27
+ $backup->path = $upload_dir['basedir'] . '/_wpremote_backups';
28
+
29
+ if ( !is_dir( $backup->path ) )
30
+ mkdir( $backup->path );
31
+
32
  // Set a random backup filename
33
  $backup->archive_filename = md5( time() ) . '.zip';
34
 
57
 
58
  $upload_dir = wp_upload_dir();
59
 
60
+ if ( ! empty( $_REQUEST['backup'] ) && file_exists( $upload_dir['basedir'] . '/_wpremote_backups/' . $_REQUEST['backup'] ) && substr( $_REQUEST['backup'], -4 ) == '.zip' )
61
+ unlink( $upload_dir['basedir'] . '/_wpremote_backups/' . $_REQUEST['backup'] );
62
 
63
  break;
64