Version Description
Download this release
Release Info
| Developer | willmot |
| Plugin | |
| Version | 1.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1 to 1.1.1
- admin.page.php +2 -2
- functions/backup.files.functions.php +1 -1
- functions/backup.mysql.functions.php +2 -2
- functions/core.functions.php +7 -1
- plugin.php +13 -2
- readme.txt +8 -1
admin.page.php
CHANGED
|
@@ -54,11 +54,11 @@
|
|
| 54 |
|
| 55 |
<?php if ( hmbkp_shell_exec_available() ) : ?>
|
| 56 |
|
| 57 |
-
<?php if ( hmbkp_zip_path() && defined( 'HMBKP_DATABASE_ONLY' ) && !HMBKP_DATABASE_ONLY || !defined( 'HMBKP_DATABASE_ONLY' ) ) : ?>
|
| 58 |
<p>✓ <?php printf( __( 'Your %s will be backed up using the %s command.', 'hmbkp' ), '<code>' . __( 'files', 'hmbkp' ) . '</code>', '<code>' . hmbkp_zip_path() . '</code>' ); ?></p>
|
| 59 |
<?php endif; ?>
|
| 60 |
|
| 61 |
-
<?php if ( hmbkp_mysqldump_path() && defined( 'HMBKP_FILES_ONLY' ) && !HMBKP_FILES_ONLY || !defined( 'HMBKP_FILES_ONLY' ) ) : ?>
|
| 62 |
<p>✓ <?php printf( __( 'Your %s will be backed up using the %s command.', 'hmbkp' ), '<code>' . __( 'database', 'hmbkp' ) . '</code>', '<code>' . hmbkp_mysqldump_path() . '</code>' ); ?></p>
|
| 63 |
<?php endif; ?>
|
| 64 |
|
| 54 |
|
| 55 |
<?php if ( hmbkp_shell_exec_available() ) : ?>
|
| 56 |
|
| 57 |
+
<?php if ( hmbkp_zip_path() && ( defined( 'HMBKP_DATABASE_ONLY' ) && !HMBKP_DATABASE_ONLY || !defined( 'HMBKP_DATABASE_ONLY' ) ) ) : ?>
|
| 58 |
<p>✓ <?php printf( __( 'Your %s will be backed up using the %s command.', 'hmbkp' ), '<code>' . __( 'files', 'hmbkp' ) . '</code>', '<code>' . hmbkp_zip_path() . '</code>' ); ?></p>
|
| 59 |
<?php endif; ?>
|
| 60 |
|
| 61 |
+
<?php if ( hmbkp_mysqldump_path() && ( defined( 'HMBKP_FILES_ONLY' ) && !HMBKP_FILES_ONLY || !defined( 'HMBKP_FILES_ONLY' ) ) ) : ?>
|
| 62 |
<p>✓ <?php printf( __( 'Your %s will be backed up using the %s command.', 'hmbkp' ), '<code>' . __( 'database', 'hmbkp' ) . '</code>', '<code>' . hmbkp_mysqldump_path() . '</code>' ); ?></p>
|
| 63 |
<?php endif; ?>
|
| 64 |
|
functions/backup.files.functions.php
CHANGED
|
@@ -105,7 +105,7 @@ function hmbkp_zip_path() {
|
|
| 105 |
|
| 106 |
endif;
|
| 107 |
|
| 108 |
-
// Check again
|
| 109 |
if ( $path && !shell_exec( 'which ' . $path ) ) :
|
| 110 |
delete_option( 'hmbkp_zip_path' );
|
| 111 |
return hmbkp_zip_path();
|
| 105 |
|
| 106 |
endif;
|
| 107 |
|
| 108 |
+
// Check again in-case the saved path has stopped working for some reason
|
| 109 |
if ( $path && !shell_exec( 'which ' . $path ) ) :
|
| 110 |
delete_option( 'hmbkp_zip_path' );
|
| 111 |
return hmbkp_zip_path();
|
functions/backup.mysql.functions.php
CHANGED
|
@@ -72,8 +72,8 @@ function hmbkp_mysqldump_path() {
|
|
| 72 |
|
| 73 |
endif;
|
| 74 |
|
| 75 |
-
// Check again
|
| 76 |
-
if ( !shell_exec( 'which ' . $path ) ) :
|
| 77 |
delete_option( 'hmbkp_mysqldump_path' );
|
| 78 |
return hmbkp_mysqldump_path();
|
| 79 |
|
| 72 |
|
| 73 |
endif;
|
| 74 |
|
| 75 |
+
// Check again in-case the saved path has stopped working for some reason
|
| 76 |
+
if ( $path && !shell_exec( 'which ' . $path ) ) :
|
| 77 |
delete_option( 'hmbkp_mysqldump_path' );
|
| 78 |
return hmbkp_mysqldump_path();
|
| 79 |
|
functions/core.functions.php
CHANGED
|
@@ -44,12 +44,18 @@ function hmbkp_deactivate() {
|
|
| 44 |
function hmbkp_update() {
|
| 45 |
|
| 46 |
global $hmbkp_version;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
// 1.0.x to 1.1
|
| 49 |
if ( !get_option( 'hmbkp_plugin_version' ) ) :
|
| 50 |
delete_transient( 'hmbkp_estimated_filesize' );
|
| 51 |
delete_option( 'hmbkp_max_backups' );
|
| 52 |
-
delete_option( '
|
| 53 |
|
| 54 |
// Delete the logs directory
|
| 55 |
hmbkp_rmdirtree( hmbkp_path() . '/logs' );
|
| 44 |
function hmbkp_update() {
|
| 45 |
|
| 46 |
global $hmbkp_version;
|
| 47 |
+
|
| 48 |
+
// Every update
|
| 49 |
+
if ( version_compare( $hmbkp_version, get_option( 'hmbkp_plugin_version' ), '>' ) ) :
|
| 50 |
+
delete_transient( 'hmbkp_estimated_filesize' );
|
| 51 |
+
delete_option( 'hmbkp_running' );
|
| 52 |
+
endif;
|
| 53 |
|
| 54 |
// 1.0.x to 1.1
|
| 55 |
if ( !get_option( 'hmbkp_plugin_version' ) ) :
|
| 56 |
delete_transient( 'hmbkp_estimated_filesize' );
|
| 57 |
delete_option( 'hmbkp_max_backups' );
|
| 58 |
+
delete_option( 'hmbkp_running' );
|
| 59 |
|
| 60 |
// Delete the logs directory
|
| 61 |
hmbkp_rmdirtree( hmbkp_path() . '/logs' );
|
plugin.php
CHANGED
|
@@ -3,9 +3,9 @@
|
|
| 3 |
/*
|
| 4 |
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.1
|
| 9 |
Author URI: http://humanmade.co.uk/
|
| 10 |
*/
|
| 11 |
|
|
@@ -36,6 +36,7 @@ function hmbkp_actions() {
|
|
| 36 |
global $hmbkp_version;
|
| 37 |
|
| 38 |
$plugin_data = get_plugin_data( __FILE__ );
|
|
|
|
| 39 |
$hmbkp_version = (float) $plugin_data['Version'];
|
| 40 |
|
| 41 |
// Fire the update action
|
|
@@ -69,6 +70,16 @@ function hmbkp_actions() {
|
|
| 69 |
}
|
| 70 |
add_action( 'admin_init', 'hmbkp_actions' );
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
// Load the admin menu
|
| 73 |
require_once( HMBKP_PLUGIN_PATH . '/admin.menus.php' );
|
| 74 |
|
| 3 |
/*
|
| 4 |
Plugin Name: BackUpWordPress
|
| 5 |
Plugin URI: http://humanmade.co.uk/
|
| 6 |
+
Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools → Backups</strong>.
|
| 7 |
Author: Human Made Limited
|
| 8 |
+
Version: 1.1.1
|
| 9 |
Author URI: http://humanmade.co.uk/
|
| 10 |
*/
|
| 11 |
|
| 36 |
global $hmbkp_version;
|
| 37 |
|
| 38 |
$plugin_data = get_plugin_data( __FILE__ );
|
| 39 |
+
|
| 40 |
$hmbkp_version = (float) $plugin_data['Version'];
|
| 41 |
|
| 42 |
// Fire the update action
|
| 70 |
}
|
| 71 |
add_action( 'admin_init', 'hmbkp_actions' );
|
| 72 |
|
| 73 |
+
function hmbkp_plugin_row( $plugins ) {
|
| 74 |
+
|
| 75 |
+
if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) )
|
| 76 |
+
$plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools → Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools → Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] );
|
| 77 |
+
|
| 78 |
+
return $plugins;
|
| 79 |
+
|
| 80 |
+
}
|
| 81 |
+
add_filter( 'all_plugins', 'hmbkp_plugin_row', 10 );
|
| 82 |
+
|
| 83 |
// Load the admin menu
|
| 84 |
require_once( HMBKP_PLUGIN_PATH . '/admin.menus.php' );
|
| 85 |
|
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.1
|
| 7 |
|
| 8 |
Simple automated backups of your WordPress powered website.
|
| 9 |
|
|
@@ -27,6 +27,13 @@ Contact support@humanmade.co.uk for help/support.
|
|
| 27 |
|
| 28 |
== Changelog ==
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
#### 1.1
|
| 31 |
|
| 32 |
* Remove the logging facility as it provided little benefit and complicated the code, your existing logs will be deleted on update.
|
| 3 |
Tags: back up, backup, backups
|
| 4 |
Requires at least: 3.0
|
| 5 |
Tested up to: 3.1
|
| 6 |
+
Stable tag: 1.1.1
|
| 7 |
|
| 8 |
Simple automated backups of your WordPress powered website.
|
| 9 |
|
| 27 |
|
| 28 |
== Changelog ==
|
| 29 |
|
| 30 |
+
#### 1.1.1
|
| 31 |
+
|
| 32 |
+
* Fix a possible `max_execution_timeout` fatal error when attempting to calculate the path to `mysqldump`.
|
| 33 |
+
* Clear the running backup status and reset the calculated filesize on update.
|
| 34 |
+
* Show a link to the manage backups page in the plugin description.
|
| 35 |
+
* Other general fixes.
|
| 36 |
+
|
| 37 |
#### 1.1
|
| 38 |
|
| 39 |
* Remove the logging facility as it provided little benefit and complicated the code, your existing logs will be deleted on update.
|
