The WP Remote WordPress Plugin - Version 2.2.3

Version Description

Download this release

Release Info

Developer joehoyle
Plugin Icon 128x128 The WP Remote WordPress Plugin
Version 2.2.3
Comparing to
See all releases

Code changes from version 2.2.2 to 2.2.3

Files changed (4) hide show
  1. hm-backup/hm-backup.php +5 -5
  2. plugin.php +1 -1
  3. readme.txt +5 -1
  4. wprp.backups.php +4 -4
hm-backup/hm-backup.php CHANGED
@@ -5,7 +5,7 @@
5
  *
6
  * @version 2.0 Beta
7
  */
8
- class HM_Backup {
9
 
10
  /**
11
  * The path where the backup file should be saved
@@ -865,7 +865,7 @@ class HM_Backup {
865
 
866
  // Zip up everything
867
  if ( $this->get_type() !== 'database' )
868
- if ( ! $archive->add( $this->get_root(), PCLZIP_OPT_REMOVE_PATH, $this->get_root(), PCLZIP_CB_PRE_ADD, 'hmbkp_pclzip_callback' ) )
869
  $this->warning( $this->archive_method, $archive->errorInfo( true ) );
870
 
871
  // Add the database
@@ -1555,16 +1555,16 @@ class HM_Backup {
1555
  * @param array &$file
1556
  * @return bool
1557
  */
1558
- function hmbkp_pclzip_callback( $event, &$file ) {
1559
 
1560
- global $_hmbkp_exclude_string;
1561
 
1562
  // Don't try to add unreadable files.
1563
  if ( ! is_readable( $file['filename'] ) || ! file_exists( $file['filename'] ) )
1564
  return false;
1565
 
1566
  // Match everything else past the exclude list
1567
- elseif ( $_hmbkp_exclude_string && preg_match( '(' . $_hmbkp_exclude_string . ')', $file['stored_filename'] ) )
1568
  return false;
1569
 
1570
  return true;
5
  *
6
  * @version 2.0 Beta
7
  */
8
+ class WPR_HM_Backup {
9
 
10
  /**
11
  * The path where the backup file should be saved
865
 
866
  // Zip up everything
867
  if ( $this->get_type() !== 'database' )
868
+ if ( ! $archive->add( $this->get_root(), PCLZIP_OPT_REMOVE_PATH, $this->get_root(), PCLZIP_CB_PRE_ADD, 'wpr_hmbkp_pclzip_callback' ) )
869
  $this->warning( $this->archive_method, $archive->errorInfo( true ) );
870
 
871
  // Add the database
1555
  * @param array &$file
1556
  * @return bool
1557
  */
1558
+ function wpr_hmbkp_pclzip_callback( $event, &$file ) {
1559
 
1560
+ global $_wpr_hmbkp_exclude_string;
1561
 
1562
  // Don't try to add unreadable files.
1563
  if ( ! is_readable( $file['filename'] ) || ! file_exists( $file['filename'] ) )
1564
  return false;
1565
 
1566
  // Match everything else past the exclude list
1567
+ elseif ( $_wpr_hmbkp_exclude_string && preg_match( '(' . $_wpr_hmbkp_exclude_string . ')', $file['stored_filename'] ) )
1568
  return false;
1569
 
1570
  return true;
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.2.2
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.2.3
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.4.1
6
- Stable tag: 2.2.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,6 +31,10 @@ You can email us at support@wpremote.com for support.
31
 
32
  == Changelog ==
33
 
 
 
 
 
34
  #### 2.2
35
 
36
  * Start keeping a changelog of plugin changes
3
  Tags: wpremote, remote administration, multiple wordpress
4
  Requires at least: 2.9
5
  Tested up to: 3.4.1
6
+ Stable tag: 2.2.3
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.2.3
35
+
36
+ * Use WPR_HM_Backup instead of HM_Backup (fixes compatibilty with backupwordpress)
37
+
38
  #### 2.2
39
 
40
  * Start keeping a changelog of plugin changes
wprp.backups.php CHANGED
@@ -8,7 +8,7 @@
8
  */
9
  function _wprp_backups_api_call( $action ) {
10
 
11
- if ( ! class_exists( 'hm_backup' ) )
12
  return new WP_Error( 'Backups module not present' );
13
 
14
  switch( $action ) :
@@ -21,7 +21,7 @@ function _wprp_backups_api_call( $action ) {
21
 
22
  @ignore_user_abort( true );
23
 
24
- $backup = new HM_Backup();
25
  $upload_dir = wp_upload_dir();
26
 
27
  // Store the backup file in the uploads dir
@@ -156,10 +156,10 @@ function _wprp_backups_rmdirtree( $dir ) {
156
  }
157
 
158
  function _wprp_get_backups_info() {
159
- if ( ! class_exists( 'hm_backup' ) )
160
  return;
161
 
162
- $hm_backup = new HM_Backup();
163
  $info = array(
164
  'mysqldump_path' => $hm_backup->get_mysqldump_command_path(),
165
  'zip_path' => $hm_backup->get_zip_command_path()
8
  */
9
  function _wprp_backups_api_call( $action ) {
10
 
11
+ if ( ! class_exists( 'WPR_HM_Backup' ) )
12
  return new WP_Error( 'Backups module not present' );
13
 
14
  switch( $action ) :
21
 
22
  @ignore_user_abort( true );
23
 
24
+ $backup = new WPR_HM_Backup();
25
  $upload_dir = wp_upload_dir();
26
 
27
  // Store the backup file in the uploads dir
156
  }
157
 
158
  function _wprp_get_backups_info() {
159
+ if ( ! class_exists( 'WPR_HM_Backup' ) )
160
  return;
161
 
162
+ $hm_backup = new WPR_HM_Backup();
163
  $info = array(
164
  'mysqldump_path' => $hm_backup->get_mysqldump_command_path(),
165
  'zip_path' => $hm_backup->get_zip_command_path()