Version Description
- fix problem with a losing sql connection on job end
Download this release
Release Info
Developer | danielhuesken |
Plugin | BackWPup – WordPress Backup Plugin |
Version | 1.7.6 |
Comparing to | |
See all releases |
Code changes from version 1.7.5 to 1.7.6
- app/backwpup_dojob.php +6 -0
- app/php-functions.php +2 -2
- backwpup.php +2 -2
- readme.txt +4 -1
app/backwpup_dojob.php
CHANGED
@@ -1375,9 +1375,15 @@ class backwpup_dojob {
|
|
1375 |
|
1376 |
|
1377 |
public function job_end($logfile ='') {
|
|
|
1378 |
if (empty($logfile))
|
1379 |
$logfile=$this->logdir.$this->logfile;
|
1380 |
|
|
|
|
|
|
|
|
|
|
|
1381 |
if ($logfile==$this->logdir.$this->logfile) {
|
1382 |
//delete old logs
|
1383 |
if (!empty($this->cfg['maxlogs'])) {
|
1375 |
|
1376 |
|
1377 |
public function job_end($logfile ='') {
|
1378 |
+
global $wpdb;
|
1379 |
if (empty($logfile))
|
1380 |
$logfile=$this->logdir.$this->logfile;
|
1381 |
|
1382 |
+
if(!mysql_ping($wpdb->dbh)) {
|
1383 |
+
trigger_error(__('Database connection is gone create a new one.','backwpup'),E_USER_NOTICE);
|
1384 |
+
$wpdb->db_connect();
|
1385 |
+
}
|
1386 |
+
|
1387 |
if ($logfile==$this->logdir.$this->logfile) {
|
1388 |
//delete old logs
|
1389 |
if (!empty($this->cfg['maxlogs'])) {
|
app/php-functions.php
CHANGED
@@ -806,8 +806,8 @@ function backwpup_env_checks() {
|
|
806 |
$message='';
|
807 |
$checks=true;
|
808 |
$cfg=get_option('backwpup');
|
809 |
-
if (version_compare($wp_version, '
|
810 |
-
$message.=__('- WordPress
|
811 |
$checks=false;
|
812 |
}
|
813 |
if (version_compare(phpversion(), '5.2.0', '<')) { // check PHP Version
|
806 |
$message='';
|
807 |
$checks=true;
|
808 |
$cfg=get_option('backwpup');
|
809 |
+
if (version_compare($wp_version, '3.1', '<')) { // check WP Version
|
810 |
+
$message.=__('- WordPress 3.1 or heiger needed!','backwpup') . '<br />';
|
811 |
$checks=false;
|
812 |
}
|
813 |
if (version_compare(phpversion(), '5.2.0', '<')) { // check PHP Version
|
backwpup.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: BackWPup
|
|
4 |
Plugin URI: http://danielhuesken.de/portfolio/backwpup/
|
5 |
Description: Backup and more of your WordPress Blog Database and Files.
|
6 |
Author: Daniel Hüsken
|
7 |
-
Version: 1.7.
|
8 |
Author URI: http://danielhuesken.de
|
9 |
Text Domain: backwpup
|
10 |
Domain Path: /lang/
|
@@ -34,7 +34,7 @@ if ( !defined('ABSPATH') )
|
|
34 |
//Set plugin dirname
|
35 |
define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
|
36 |
//Set Plugin Version
|
37 |
-
define('BACKWPUP_VERSION', '1.7.
|
38 |
//Set User Capability
|
39 |
define('BACKWPUP_USER_CAPABILITY', '10');
|
40 |
//Set useable destinations
|
4 |
Plugin URI: http://danielhuesken.de/portfolio/backwpup/
|
5 |
Description: Backup and more of your WordPress Blog Database and Files.
|
6 |
Author: Daniel Hüsken
|
7 |
+
Version: 1.7.6
|
8 |
Author URI: http://danielhuesken.de
|
9 |
Text Domain: backwpup
|
10 |
Domain Path: /lang/
|
34 |
//Set plugin dirname
|
35 |
define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
|
36 |
//Set Plugin Version
|
37 |
+
define('BACKWPUP_VERSION', '1.7.6');
|
38 |
//Set User Capability
|
39 |
define('BACKWPUP_USER_CAPABILITY', '10');
|
40 |
//Set useable destinations
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=danie
|
|
4 |
Tags: backup, admin, file, Database, mysql, Cron, ftp, S3, export, xml, Rackspace, Cloud, Azure, DropBox, SugarSync
|
5 |
Requires at least: 3.1.0
|
6 |
Tested up to: 3.1.3
|
7 |
-
Stable tag: 1.7.
|
8 |
|
9 |
Backup your WordPress Database and Files, and more!
|
10 |
|
@@ -102,6 +102,9 @@ Destinations are:
|
|
102 |
1. Job Page
|
103 |
|
104 |
== Changelog ==
|
|
|
|
|
|
|
105 |
= 1.7.5 =
|
106 |
* fix problems in cron calculation
|
107 |
|
4 |
Tags: backup, admin, file, Database, mysql, Cron, ftp, S3, export, xml, Rackspace, Cloud, Azure, DropBox, SugarSync
|
5 |
Requires at least: 3.1.0
|
6 |
Tested up to: 3.1.3
|
7 |
+
Stable tag: 1.7.6
|
8 |
|
9 |
Backup your WordPress Database and Files, and more!
|
10 |
|
102 |
1. Job Page
|
103 |
|
104 |
== Changelog ==
|
105 |
+
= 1.7.6 =
|
106 |
+
* fix problem with a losing sql connection on job end
|
107 |
+
|
108 |
= 1.7.5 =
|
109 |
* fix problems in cron calculation
|
110 |
|