diff --git a/assets/hmbkp.min.js b/assets/hmbkp.min.js index 6bb0bd65..4bf9f197 100644 --- a/assets/hmbkp.min.js +++ b/assets/hmbkp.min.js @@ -1 +1 @@ -function hmbkpToggleScheduleFields(a){a="undefined"!=typeof a?a:"manually";var b=jQuery(".recurring-setting"),c=jQuery("#schedule-start"),d=jQuery("p.twice-js");switch(a){case"manually":b.hide();break;case"hmbkp_hourly":b.hide();break;case"hmbkp_daily":b.hide(),c.show(),d.hide();break;case"hmbkp_twicedaily":b.hide(),c.show(),d.show();break;case"hmbkp_weekly":case"hmbkp_fortnightly":b.hide(),jQuery("#start-day").show(),c.show(),d.hide();break;case"hmbkp_monthly":b.hide(),c.show(),jQuery("#start-date").show(),d.hide()}}function hmbkpCatchResponseAndOfferToEmail(a){a&&0!==a?(jQuery(".hmbkp-schedule-sentence.hmbkp-running").removeClass("hmbkp-running").addClass("hmbkp-error"),jQuery.post(ajaxurl,{nonce:hmbkp.nonce,action:"hmbkp_backup_error",hmbkp_error:a},function(a){a&&0!==a&&location.reload(!0)})):location.reload(!0),jQuery(document).one("click",".hmbkp_send_error_via_email",function(b){b.preventDefault(),jQuery(this).addClass("hmbkp-ajax-loading").attr("disabled","disabled"),jQuery.post(ajaxurl,{nonce:hmbkp.nonce,action:"hmbkp_email_error",hmbkp_error:a},function(){})})}jQuery(document).ready(function(a){a.ajaxSetup({cache:!1}),a("select#hmbkp_schedule_recurrence_type").size()&&(hmbkpToggleScheduleFields(a("select#hmbkp_schedule_recurrence_type").val()),a(document).on("change","select#hmbkp_schedule_recurrence_type",function(){hmbkpToggleScheduleFields(a(this).val())})),a(document).on("click",".hmbkp-schedule-actions .delete-action",function(a){confirm(hmbkp.delete_schedule)||a.preventDefault()}),a(document).on("click",".hmbkp_manage_backups_row .delete-action",function(a){confirm(hmbkp.delete_backup)||a.preventDefault()}),a(document).on("click",".hmbkp-edit-schedule-excludes-form .delete-action",function(a){confirm(hmbkp.remove_exclude_rule)||a.preventDefault()}),a.post(ajaxurl,{nonce:hmbkp.nonce,action:"hmbkp_cron_test"},function(b){"1"!==b&&a(".wrap > h2").after(b)}),a(document).on("click",".hmbkp-run",function(b){a(this).closest(".hmbkp-schedule-sentence").addClass("hmbkp-running"),a(".hmbkp-error").removeClass("hmbkp-error");var c=a("[data-hmbkp-schedule-id]").attr("data-hmbkp-schedule-id");a.post(ajaxurl,{hmbkp_run_schedule_nonce:hmbkp.hmbkp_run_schedule_nonce,action:"hmbkp_run_schedule",hmbkp_schedule_id:c}),b.preventDefault()}),a(document).on("heartbeat-send",function(b,c){c.hmbkp_schedule_id=a("[data-hmbkp-schedule-id]").attr("data-hmbkp-schedule-id"),a(".hmbkp-schedule-sentence.hmbkp-running").size()?c.hmbkp_is_in_progress=!0:c.hmbkp_client_request="site_size"}),a(document).on("heartbeat-tick",function(b,c){if(0!==c.hmbkp_schedule_status||a(".hmbkp-error").size()||location.reload(!0),0!==c.hmbkp_schedule_status&&void 0!==c.hmbkp_schedule_status&&a(".hmbkp-status").replaceWith(c.hmbkp_schedule_status),void 0!==c.hmbkp_site_size&&a("code.calculating").size()){a("code.calculating").text(c.hmbkp_site_size);var d=a(".hmbkp-exclude-settings");d.size()&&d.replaceWith(c.hmbkp_dir_sizes)}}),a(document).on("click",".hmbkp-thickbox-close",function(a){a.preventDefault(),tb_remove()})}); \ No newline at end of file +function hmbkpToggleScheduleFields(a){a="undefined"!=typeof a?a:"manually";var b=jQuery(".recurring-setting"),c=jQuery("#schedule-start"),d=jQuery("p.twice-js");switch(a){case"manually":b.hide();break;case"hmbkp_hourly":b.hide();break;case"hmbkp_daily":b.hide(),c.show(),d.hide();break;case"hmbkp_twicedaily":b.hide(),c.show(),d.show();break;case"hmbkp_weekly":case"hmbkp_fortnightly":b.hide(),jQuery("#start-day").show(),c.show(),d.hide();break;case"hmbkp_monthly":b.hide(),c.show(),jQuery("#start-date").show(),d.hide()}}function hmbkpCatchResponseAndOfferToEmail(a){a&&0!==a?(jQuery(".hmbkp-schedule-sentence.hmbkp-running").removeClass("hmbkp-running").addClass("hmbkp-error"),jQuery.post(ajaxurl,{nonce:hmbkp.nonce,action:"hmbkp_backup_error",hmbkp_error:a},function(a){a&&0!==a&&location.reload(!0)})):location.reload(!0),jQuery(document).one("click",".hmbkp_send_error_via_email",function(b){b.preventDefault(),jQuery(this).addClass("hmbkp-ajax-loading").attr("disabled","disabled"),jQuery.post(ajaxurl,{nonce:hmbkp.nonce,action:"hmbkp_email_error",hmbkp_error:a},function(){})})}jQuery(document).ready(function(a){a.ajaxSetup({cache:!1}),a("select#hmbkp_schedule_recurrence_type").size()&&(hmbkpToggleScheduleFields(a("select#hmbkp_schedule_recurrence_type").val()),a(document).on("change","select#hmbkp_schedule_recurrence_type",function(){hmbkpToggleScheduleFields(a(this).val())})),a(document).on("click",".hmbkp-schedule-actions .delete-action",function(a){confirm(hmbkp.delete_schedule)||a.preventDefault()}),a(document).on("click",".hmbkp_manage_backups_row .delete-action",function(a){confirm(hmbkp.delete_backup)||a.preventDefault()}),a(document).on("click",".hmbkp-edit-schedule-excludes-form .delete-action",function(a){confirm(hmbkp.remove_exclude_rule)||a.preventDefault()}),a.post(ajaxurl,{nonce:hmbkp.nonce,action:"hmbkp_cron_test"},function(b){"1"!==b&&a(".wrap > h2").after(b)}),a(document).on("click",".hmbkp-run",function(b){a(this).closest(".hmbkp-schedule-sentence").addClass("hmbkp-running"),a(".hmbkp-error").removeClass("hmbkp-error");var c=a("[data-hmbkp-schedule-id]").attr("data-hmbkp-schedule-id");a.post(ajaxurl,{hmbkp_run_schedule_nonce:hmbkp.hmbkp_run_schedule_nonce,action:"hmbkp_run_schedule",hmbkp_schedule_id:c}),b.preventDefault()}),a(document).on("heartbeat-send",function(b,c){c.hmbkp_schedule_id=a("[data-hmbkp-schedule-id]").attr("data-hmbkp-schedule-id"),a(".hmbkp-schedule-sentence.hmbkp-running").size()?c.hmbkp_is_in_progress=!0:c.hmbkp_client_request="site_size"}),a(document).on("heartbeat-tick",function(b,c){if(0!==c.hmbkp_schedule_status||a(".hmbkp-error").size()||location.reload(!0),0!==c.hmbkp_schedule_status&&void 0!==c.hmbkp_schedule_status&&a(".hmbkp-status").replaceWith(c.hmbkp_schedule_status),void 0!==c.hmbkp_site_size&&a("code.calculating").size()){a("code.calculating").text(c.hmbkp_site_size);var d=a(".hmbkp-exclude-settings");d.size()&&d.replaceWith(c.hmbkp_dir_sizes)}}),a(document).on("click",".hmbkp-thickbox-close",function(a){a.preventDefault(),window.parent.tb_remove()})}); \ No newline at end of file diff --git a/backupwordpress.php b/backupwordpress.php index 59f0ca2a..6c36b4bf 100644 --- a/backupwordpress.php +++ b/backupwordpress.php @@ -3,7 +3,7 @@ Plugin Name: BackUpWordPress Backup Plugin Plugin URI: http://bwp.hmn.md/ Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under Tools → Backups. On multisite, you'll find me under the Network Settings menu. -Version: 3.2.4 +Version: 3.2.5 Author: Human Made Limited Author URI: http://hmn.md/ License: GPL-2.0+ diff --git a/classes/class-plugin.php b/classes/class-plugin.php index a8c3a93f..f9743ad2 100644 --- a/classes/class-plugin.php +++ b/classes/class-plugin.php @@ -6,7 +6,7 @@ * Class Plugin */ final class Plugin { - const PLUGIN_VERSION = '3.2.4'; + const PLUGIN_VERSION = '3.2.5'; /** * @var Plugin The singleton instance. diff --git a/package.json b/package.json index 0bb1b7d2..d54194b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "BackUpWordPress", - "version": "3.2.4", + "version": "3.2.5", "description": "Simple automated backups of your WordPress powered website.", "main": "backupwordpress.php", "directories": { diff --git a/readme.md b/readme.md index f2bd6993..fd6e70ad 100644 --- a/readme.md +++ b/readme.md @@ -2,8 +2,8 @@ **Contributors:** humanmade, willmot, pauldewouters, joehoyle, mattheu, tcrsavage, cuvelier **Tags:** back up, backup, backups, database, zip, db, files, archive, wp-cli, humanmade **Requires at least:** 3.9 -**Tested up to:** 4.2-beta -**Stable tag:** 3.2.1 +**Tested up to:** 4.2 +**Stable tag:** 3.2.5 Simple automated backups of your WordPress powered website. @@ -124,6 +124,10 @@ You can also tweet @humanmadeltd o ## Upgrade Notice ## +### 3.2.5 ### + +* Security fixes related to add_query_arg + ### 3.2.1 ### * Important bug fixes. Please upgrade to this version to avoid incomplete or broken backups. @@ -146,6 +150,40 @@ You can also tweet @humanmadeltd o ## Changelog ## +## 3.2.5 / 2015-04-29 + +* Fixes an issue when evaluating expression with empty +* Fixes a fatal error on PHP 5.3 +* Displays other notices +* Updates stable tag +* Adds some escaping and sanitizing +* Defines plugins dir for different environments +* Adds tests for activation and deactivation hooks +* Adds a debugging function for tests +* Symlinks plugin into tests dir +* Splits out deactivation code into separate functions +* Fixes activation and deactivation hooks not being fired +* Exclude backups folder from size calculation +* Fixes a misplaced parenthesis +* Fixes how error messages are bubbled up +* get home path should return defined value +* Removes redundant exclude statement as CVS folders are excluded by default +* Adds a flag parameter to allow get_files to return all files including default excludes + +### 3.2.4 / 2015-04-01 + +* Fixes default exclude pattern that was too greedy. + +### 3.2.3 / 2015-04-01 + +* Fixes issue where files where 'cache' files were excluded by default. +* Updates brazilian portuguese translations. +* Fixes the issue with the 'no thanks' button in the Support modal and misc JS improvements. props SiamKreative. + +### 3.2.2 / 2015-03-25 + +* Fixes error in manual backups, caused by incorrect plugin version number in class, which is used for the JS script version. + ### 3.2.1 / 2015-03-25 * Check if shell_exec is available before running command diff --git a/readme.txt b/readme.txt index 340a1d4c..c695627f 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ Contributors: humanmade, willmot, pauldewouters, joehoyle, mattheu, tcrsavage, cuvelier Tags: back up, backup, backups, database, zip, db, files, archive, wp-cli, humanmade Requires at least: 3.9 -Tested up to: 4.2-beta -Stable tag: 3.2.4 +Tested up to: 4.2 +Stable tag: 3.2.5 Simple automated backups of your WordPress powered website. @@ -118,6 +118,10 @@ You can also tweet @humanmadeltd o == Upgrade Notice == += 3.2.5 = + +* Security fixes related to add_query_arg + = 3.2.1 = * Important bug fixes. Please upgrade to this version to avoid incomplete or broken backups. @@ -140,6 +144,26 @@ You can also tweet @humanmadeltd o == Changelog == +## 3.2.5 / 2015-04-29 + +* Fixes an issue when evaluating expression with empty +* Fixes a fatal error on PHP 5.3 +* Displays other notices +* Updates stable tag +* Adds some escaping and sanitizing +* Defines plugins dir for different environments +* Adds tests for activation and deactivation hooks +* Adds a debugging function for tests +* Symlinks plugin into tests dir +* Splits out deactivation code into separate functions +* Fixes activation and deactivation hooks not being fired +* Exclude backups folder from size calculation +* Fixes a misplaced parenthesis +* Fixes how error messages are bubbled up +* get home path should return defined value +* Removes redundant exclude statement as CVS folders are excluded by default +* Adds a flag parameter to allow get_files to return all files including default excludes + ### 3.2.4 / 2015-04-01 * Fixes default exclude pattern that was too greedy. diff --git a/readme/readme-footer.txt b/readme/readme-footer.txt index 9fd5194f..3bb23a00 100644 --- a/readme/readme-footer.txt +++ b/readme/readme-footer.txt @@ -14,6 +14,10 @@ You can also tweet @humanmadeltd o == Upgrade Notice == += 3.2.5 = + +* Security fixes related to add_query_arg + = 3.2.1 = * Important bug fixes. Please upgrade to this version to avoid incomplete or broken backups. @@ -36,6 +40,26 @@ You can also tweet @humanmadeltd o == Changelog == +## 3.2.5 / 2015-04-29 + +* Fixes an issue when evaluating expression with empty +* Fixes a fatal error on PHP 5.3 +* Displays other notices +* Updates stable tag +* Adds some escaping and sanitizing +* Defines plugins dir for different environments +* Adds tests for activation and deactivation hooks +* Adds a debugging function for tests +* Symlinks plugin into tests dir +* Splits out deactivation code into separate functions +* Fixes activation and deactivation hooks not being fired +* Exclude backups folder from size calculation +* Fixes a misplaced parenthesis +* Fixes how error messages are bubbled up +* get home path should return defined value +* Removes redundant exclude statement as CVS folders are excluded by default +* Adds a flag parameter to allow get_files to return all files including default excludes + ### 3.2.4 / 2015-04-01 * Fixes default exclude pattern that was too greedy. diff --git a/readme/readme-header.txt b/readme/readme-header.txt index a675882d..be793480 100644 --- a/readme/readme-header.txt +++ b/readme/readme-header.txt @@ -3,7 +3,7 @@ Contributors: humanmade, willmot, pauldewouters, joehoyle, mattheu, tcrsavage, c Tags: back up, backup, backups, database, zip, db, files, archive, wp-cli, humanmade Requires at least: 3.9 Tested up to: 4.2 -Stable tag: 3.2.4 +Stable tag: 3.2.5 Simple automated backups of your WordPress powered website.