BackUpWordPress - Version 1.0.2

Version Description

Download this release

Release Info

Developer willmot
Plugin Icon 128x128 BackUpWordPress
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

admin.actions.php CHANGED
@@ -15,7 +15,7 @@ function hmbkp_request_delete_backup() {
15
  exit;
16
 
17
  }
18
- add_action( 'load-tools_page_humanmade_backups', 'hmbkp_request_delete_backup' );
19
 
20
  /**
21
  * Schedule a one time backup and then
@@ -43,7 +43,7 @@ function hmbkp_request_do_backup() {
43
  exit;
44
 
45
  }
46
- add_action( 'load-tools_page_humanmade_backups', 'hmbkp_request_do_backup' );
47
 
48
  /**
49
  * Send the download file to the browser and
@@ -57,7 +57,7 @@ function hmbkp_request_download_backup() {
57
  hmbkp_send_file( base64_decode( $_GET['hmbkp_download'] ) );
58
 
59
  }
60
- add_action( 'load-tools_page_humanmade_backups', 'hmbkp_request_download_backup' );
61
 
62
  function hmbkp_ajax_is_backup_in_progress() {
63
  echo (int) hmbkp_is_in_progress();
15
  exit;
16
 
17
  }
18
+ add_action( 'load-tools_page_backupswordpress', 'hmbkp_request_delete_backup' );
19
 
20
  /**
21
  * Schedule a one time backup and then
43
  exit;
44
 
45
  }
46
+ add_action( 'load-tools_page_backupswordpress', 'hmbkp_request_do_backup' );
47
 
48
  /**
49
  * Send the download file to the browser and
57
  hmbkp_send_file( base64_decode( $_GET['hmbkp_download'] ) );
58
 
59
  }
60
+ add_action( 'load-tools_page_backupswordpress', 'hmbkp_request_download_backup' );
61
 
62
  function hmbkp_ajax_is_backup_in_progress() {
63
  echo (int) hmbkp_is_in_progress();
admin.menus.php CHANGED
@@ -5,7 +5,7 @@
5
  * to the tools menu
6
  */
7
  function hmbkp_admin_menu() {
8
- add_management_page( __( 'Manage Backups','hmbkp' ), __( 'Backups','hmbkp' ), 'manage_options', 'humanmade_backups', 'hmbkp_manage_backups' );
9
  }
10
  add_action( 'admin_menu', 'hmbkp_admin_menu' );
11
 
5
  * to the tools menu
6
  */
7
  function hmbkp_admin_menu() {
8
+ add_management_page( __( 'Manage Backups','hmbkp' ), __( 'Backups','hmbkp' ), 'manage_options', 'backupswordpress', 'hmbkp_manage_backups' );
9
  }
10
  add_action( 'admin_menu', 'hmbkp_admin_menu' );
11
 
functions/interface.functions.php CHANGED
@@ -22,8 +22,8 @@ function hmbkp_get_backup_row( $file ) {
22
 
23
  <td>
24
 
25
- <a href="tools.php?page=humanmade_backups&amp;hmbkp_download=<?php echo $encode; ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> |
26
- <a href="tools.php?page=humanmade_backups&amp;hmbkp_delete=<?php echo $encode ?>"><?php _e( 'Delete', 'hmbkp' ); ?></a>
27
 
28
  </td>
29
 
22
 
23
  <td>
24
 
25
+ <a href="tools.php?page=backupswordpress&amp;hmbkp_download=<?php echo $encode; ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> |
26
+ <a href="tools.php?page=backupswordpress&amp;hmbkp_delete=<?php echo $encode ?>"><?php _e( 'Delete', 'hmbkp' ); ?></a>
27
 
28
  </td>
29
 
plugin.php CHANGED
@@ -5,7 +5,7 @@ Plugin Name: BackUpWordPress
5
  Plugin URI: http://humanmade.co.uk/
6
  Description: Simple automated backups of your WordPress powered website.
7
  Author: Human Made Limited
8
- Version: 1.0
9
  Author URI: http://humanmade.co.uk/
10
  */
11
 
@@ -30,8 +30,8 @@ Author URI: http://humanmade.co.uk/
30
  // TODO try to use zipArchive before pclzip
31
  // TODO get rid of schedules
32
 
33
- define( 'HMBKP_PLUGIN_PATH', WP_PLUGIN_DIR .'/humanmade.backup' );
34
- define( 'HMBKP_PLUGIN_URL', WP_PLUGIN_URL .'/humanmade.backup' );
35
 
36
  // Load the admin actions file
37
  function hmbkp_actions() {
@@ -40,7 +40,7 @@ function hmbkp_actions() {
40
 
41
  require_once( HMBKP_PLUGIN_PATH . '/admin.actions.php' );
42
 
43
- if ( isset( $_GET['page'] ) && $_GET['page'] == 'humanmade_backups' ) :
44
  wp_enqueue_script( 'hmbkp', HMBKP_PLUGIN_URL . '/assets/hmbkp.js' );
45
  wp_enqueue_style( 'hmbkp', HMBKP_PLUGIN_URL . '/assets/hmbkp.css' );
46
  endif;
@@ -63,8 +63,8 @@ require_once( HMBKP_PLUGIN_PATH . '/functions/backup.mysql.fallback.functions.ph
63
  require_once( HMBKP_PLUGIN_PATH . '/functions/backup.files.fallback.functions.php' );
64
 
65
  // Plugin activation and deactivation
66
- add_action( 'activate_humanmade.backup/plugin.php', 'hmbkp_activate' );
67
- add_action( 'deactivate_humanmade.backup/plugin.php', 'hmbkp_deactivate' );
68
 
69
  // Add more cron schedules
70
  add_filter( 'cron_schedules', 'hmbkp_more_reccurences' );
5
  Plugin URI: http://humanmade.co.uk/
6
  Description: Simple automated backups of your WordPress powered website.
7
  Author: Human Made Limited
8
+ Version: 1.0.2
9
  Author URI: http://humanmade.co.uk/
10
  */
11
 
30
  // TODO try to use zipArchive before pclzip
31
  // TODO get rid of schedules
32
 
33
+ define( 'HMBKP_PLUGIN_PATH', trailingslashit( dirname( __FILE__ ) ) );
34
+ define( 'HMBKP_PLUGIN_URL', str_replace( ABSPATH, get_bloginfo( 'url' ) . '/', HMBKP_PLUGIN_PATH ) );
35
 
36
  // Load the admin actions file
37
  function hmbkp_actions() {
40
 
41
  require_once( HMBKP_PLUGIN_PATH . '/admin.actions.php' );
42
 
43
+ if ( isset( $_GET['page'] ) && $_GET['page'] == 'backupswordpress' ) :
44
  wp_enqueue_script( 'hmbkp', HMBKP_PLUGIN_URL . '/assets/hmbkp.js' );
45
  wp_enqueue_style( 'hmbkp', HMBKP_PLUGIN_URL . '/assets/hmbkp.css' );
46
  endif;
63
  require_once( HMBKP_PLUGIN_PATH . '/functions/backup.files.fallback.functions.php' );
64
 
65
  // Plugin activation and deactivation
66
+ add_action( 'activate_backupwordpress/plugin.php', 'hmbkp_activate' );
67
+ add_action( 'deactivate_backupwordpress/plugin.php', 'hmbkp_deactivate' );
68
 
69
  // Add more cron schedules
70
  add_filter( 'cron_schedules', 'hmbkp_more_reccurences' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: willmot, humanmade
3
  Tags: back up, backup, backups
4
  Requires at least: 3.0
5
  Tested up to: 3.1
6
- Stable tag: 1.0
7
 
8
  Simple automated backups of your WordPress powered website.
9
 
@@ -17,7 +17,7 @@ BackUp WordPress will back up your entire site including your database and all y
17
 
18
  The plugin will try to use the `mysqldump` and `zip` commands via shell if they are available, using these will greatly improve the time it takes to back up your site. You can point the plugin in the right direction by defining `HMBKP_ZIP_PATH` and `HMBKP_MYSQLDUMP_PATH` in your `wp-config.php`.
19
 
20
- == Support ==
21
 
22
  Contact hello@humanmade.co.uk for help and support
23
 
@@ -27,6 +27,10 @@ Contact hello@humanmade.co.uk for help and support
27
 
28
  == Changelog ==
29
 
 
 
 
 
30
  #### 1.0
31
 
32
  1.0 represents a total rewrite & rethink of the BackUpWordPress plugin with a focus on making it "Just Work". The management and development of the plugin has been taken over by [humanmade](http://humanmade.co.uk) the chaps behind [WP Remote](https://wpremote.com)
3
  Tags: back up, backup, backups
4
  Requires at least: 3.0
5
  Tested up to: 3.1
6
+ Stable tag: 1.0.2
7
 
8
  Simple automated backups of your WordPress powered website.
9
 
17
 
18
  The plugin will try to use the `mysqldump` and `zip` commands via shell if they are available, using these will greatly improve the time it takes to back up your site. You can point the plugin in the right direction by defining `HMBKP_ZIP_PATH` and `HMBKP_MYSQLDUMP_PATH` in your `wp-config.php`.
19
 
20
+ == FAQ ==
21
 
22
  Contact hello@humanmade.co.uk for help and support
23
 
27
 
28
  == Changelog ==
29
 
30
+ #### 1.0.1 & 1.0.2
31
+
32
+ Fix some silly 1.0 bugs
33
+
34
  #### 1.0
35
 
36
  1.0 represents a total rewrite & rethink of the BackUpWordPress plugin with a focus on making it "Just Work". The management and development of the plugin has been taken over by [humanmade](http://humanmade.co.uk) the chaps behind [WP Remote](https://wpremote.com)