Version Description
Download this release
Release Info
Developer | cssimmon |
Plugin | Backup and Restore WordPress – WPBackItUp Backup Plugin |
Version | 1.22.0 |
Comparing to | |
See all releases |
Code changes from version 1.21.0 to 1.22.0
- css/wp-backitup-admin.min.css +1 -1
- lib/includes/class-admin-bar.php +133 -0
- lib/includes/class-admin-notice.php +4 -0
- lib/includes/class-wpbackitup-admin.php +5 -0
- lib/includes/job_backup.php +4 -0
- readme.txt +7 -1
- wp-backitup.php +2 -2
css/wp-backitup-admin.min.css
CHANGED
@@ -2,4 +2,4 @@ body.stop-scrolling{height:100%;overflow:hidden}.sweet-overlay{background-color:
|
|
2 |
* Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
|
3 |
* Copyright 2015 Daniel Cardoso <@DanielCardoso>
|
4 |
* Licensed under MIT
|
5 |
-
*/.la-ball-fall,.la-ball-fall>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-ball-fall{display:block;font-size:0;color:#fff}.la-ball-fall.la-dark{color:#333}.la-ball-fall>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-ball-fall{width:54px;height:18px}.la-ball-fall>div{width:10px;height:10px;margin:4px;border-radius:100%;opacity:0;-webkit-animation:ball-fall 1s ease-in-out infinite;-moz-animation:ball-fall 1s ease-in-out infinite;-o-animation:ball-fall 1s ease-in-out infinite;animation:ball-fall 1s ease-in-out infinite}.la-ball-fall>div:nth-child(1){-webkit-animation-delay:-.2s;-moz-animation-delay:-.2s;-o-animation-delay:-.2s;animation-delay:-.2s}.la-ball-fall>div:nth-child(2){-webkit-animation-delay:-.1s;-moz-animation-delay:-.1s;-o-animation-delay:-.1s;animation-delay:-.1s}.la-ball-fall>div:nth-child(3){-webkit-animation-delay:0s;-moz-animation-delay:0s;-o-animation-delay:0s;animation-delay:0s}.la-ball-fall.la-sm{width:26px;height:8px}.la-ball-fall.la-sm>div{width:4px;height:4px;margin:2px}.la-ball-fall.la-2x{width:108px;height:36px}.la-ball-fall.la-2x>div{width:20px;height:20px;margin:8px}.la-ball-fall.la-3x{width:162px;height:54px}.la-ball-fall.la-3x>div{width:30px;height:30px;margin:12px}@-webkit-keyframes ball-fall{0%{opacity:0;-webkit-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}80%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-webkit-transform:translateY(145%);transform:translateY(145%)}}@-moz-keyframes ball-fall{0%{opacity:0;-moz-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;-moz-transform:translateY(0);transform:translateY(0)}80%{opacity:1;-moz-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-moz-transform:translateY(145%);transform:translateY(145%)}}@-o-keyframes ball-fall{0%{opacity:0;-o-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;-o-transform:translateY(0);transform:translateY(0)}80%{opacity:1;-o-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-o-transform:translateY(145%);transform:translateY(145%)}}@keyframes ball-fall{0%{opacity:0;-webkit-transform:translateY(-145%);-moz-transform:translateY(-145%);-o-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}80%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-webkit-transform:translateY(145%);-moz-transform:translateY(145%);-o-transform:translateY(145%);transform:translateY(145%)}}.wpb-main .error{color:red}.wpb-main .warning{color:#feefb3}.wpb-main .wpbackitup-warning{color:#ff8000}.wpb-main .isa_cancelled,.wpb-main .isa_error,.wpb-main .isa_info,.wpb-main .isa_success,.wpb-main .isa_warning{border:1px solid;margin:10px 0;padding:15px 10px 15px 50px;background-repeat:no-repeat;background-position:10px center;-moz-border-radius:.5em;-webkit-border-radius:.5em;border-radius:.5em}.wpb-main .isa_info{color:#00529b;background-color:#bde5f8;background-image:url(../images/info.png)}.wpb-main .isa_success{color:#4f8a10;background-color:#dff2bf;background-image:url(../images/success.png)}.wpb-main .isa_warning{color:#9f6000;background-color:#feefb3;background-image:url(../images/warning.png)}.wpb-main .isa_error{color:#d8000c;background-color:#ffbaba;background-image:url(../images/error.png)}.wpb-main .isa_cancelled{color:#9f6000;background-color:#feefb3;background-image:url(../images/warning.png)}.wpb-main p{line-height:1.4em}.wpb-main h3{margin:0;padding:0;border-bottom:1px solid #eee}.wpb-main .wp-backitup-iframe{height:0;margin:0;padding:0;position:absolute;top:0;right:0;width:0;z-index:-1}.wpb-main .submit{padding:0}.wpb-main .notice-error,.wpb-main .notice-success,.wpb-main .notice-warning{background-repeat:no-repeat;margin:10px 20px 2px!important;padding:15px 10px 15px 50px;background-repeat:no-repeat;background-position:10px center}.wpb-main .notice-error{border-color:#d8000c;background-image:url(../images/error.png)}.wpb-main .notice-success{border-color:#7ad03a;background-image:url(../images/success.png)}.wpb-main .notice-warning{border-color:#9f6000;background-image:url(../images/warning.png)}#wp-backitup-notification-widget-close{cursor:pointer}.wpbackitup-get-premium{color:#d54e21}.wpb-main #content{float:left;width:65%}#content input[type=file],.wpb-main #content input[type=text]{padding:0}.wpb-main .status-icon{display:inline;height:16px;position:relative;top:3px;left:5px;visibility:hidden;width:16px}.wpb-main .backup-cancelled,.wpb-main .backup-error,.wpb-main .backup-errors,.wpb-main .backup-errors div,.wpb-main .backup-status,.wpb-main .backup-status span,.wpb-main .backup-success,.wpb-main .backup-success div,.wpb-main .backup-warning,.wpb-main .backup-warning div,.wpb-main .restore-errors,.wpb-main .restore-errors div,.wpb-main .restore-status,.wpb-main .restore-status span,.wpb-main .restore-success,.wpb-main .restore-success div,.wpb-main .upload-status,.wpb-main .upload-status span{display:none}.wpb-main #sidebar{float:right;width:30%}.wpb-main .widget{padding:1em;background-color:#fff;margin:20px}.wpb-main .cancel-hidden{display:none!important}.wpb-main .filters p label{display:block}.wpb-main ul.tagit{padding:1px 5px;overflow:auto;margin-left:inherit;margin-right:inherit}.wpb-main ul.tagit li{display:block;float:left;margin:2px 5px 2px 0}.wpb-main ul.tagit li.tagit-choice{position:relative;line-height:inherit}.wpb-main input.tagit-hidden-field{display:none}.wpb-main ul.tagit li.tagit-choice-read-only{padding:.2em .5em .2em .5em}.wpb-main ul.tagit li.tagit-choice-editable{padding:.2em 18px .2em .5em}.wpb-main ul.tagit li.tagit-new{padding:.25em 4px .25em 0}.wpb-main ul.tagit li.tagit-choice a.tagit-label{cursor:pointer;text-decoration:none}.wpb-main ul.tagit li.tagit-choice .tagit-close{cursor:pointer;position:absolute;right:.1em;top:50%;margin-top:-8px;line-height:17px}.wpb-main ul.tagit li.tagit-choice .tagit-close .text-icon{display:none}.wpb-main ul.tagit li.tagit-choice input{display:block;float:left;margin:2px 5px 2px 0}.wpb-main ul.tagit input[type=text]{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;border:none;margin:0;padding:0;width:inherit;background-color:inherit;outline:0}.wpb-main .dbfilters_section{overflow:hidden;clear:both;margin-top:-20px}.wpb-main .dbfilters_section h4{margin-bottom:2px}.dbfilters_section_right,.wpb-main .dbfilters_section_left{float:left;width:302px;margin-right:10px}.wpb-main .wpbackitup_connectedSortable{border:1px solid #eee;width:100%;min-height:20px;list-style-type:none;margin:0;padding:5px 0 0 0}.wpb-main .wpbackitup_connectedSortable li{margin:0 5px 5px 5px;padding:5px;font-size:1.2em;width:280px}.wpb-main .word-capitalize{text-transform:capitalize}.wpb-badge{position:absolute;right:0;top:0;background:url(../images/wpbackitup-logo.png) center top no-repeat;color:#32828b;display:inline-block;font-size:14px;font-weight:600;height:40px;margin:5px 0 0;padding-top:132px;text-align:center;text-rendering:optimizelegibility;width:150px}.wpb-main .success-grid{color:#4f8a10;background-color:#dff2bf;font-weight:700}.wpbackitup-topbar{position:relative;top:20px;overflow:hidden;clear:both;margin:0;width:98%;min-width:255px;padding:10px;background:#ddd none repeat scroll 0 0;border-radius:15px}.wpbackitup-topbar a,.wpbackitup-topbar h2{float:left;margin-left:5px;margin-right:25px}.wpbackitup-topbar h2{font-size:25px;font-weight:600}.wpbiu-button{float:right!important;margin-right:15px!important;margin-top:10px!important;margin-top:15px!important}.wpb-main #import-uploads{display:none}.wpb-main #import-uploads.button-secondary{margin-top:12px;background:#42b8dd!important;color:#fff!important}.wpb-main #import-uploads.button-secondary:hover{background:#45bce4!important;border-color:#aaa!important}.wpbiu-notes{overflow:hidden}.wpbiu-notes textarea{width:100%;height:60px;padding:5px}.wpbiu-notes button{width:15%;margin:5px 0!important}.wpbiu-notes span{margin-left:10px;color:green;display:none}.wpbiu-select-box select{display:block;margin:10px 0;width:15%}.wpbiu-support-textarea{width:270px;height:100px}.wpbiu-form-input{padding:3px!important}.wpb-main .downloadbackuplink>i{margin-left:10px}@media only screen and (max-width :767px){.wpb-main #content{width:100%}.wpbiu-select-box select{width:40%}.wpbackitup-topbar h2{font-size:18px}.wpbiu-button{float:left!important}.wpbackitup-topbar{width:86%;padding:20px}.wpb-main .widefat thead{display:none}.wpb-main .widefat tbody td{display:block;padding:.6rem;margin-left:.4rem}.wpb-main .widefat td:before{content:attr(data-th);font-weight:700;display:inline-block;width:100%;margin-bottom:.3rem;margin-left:-.3rem}.wpb-main #TB_window{margin-left:-50%!important;width:100%!important}.wpb-main #TB_ajaxContent{width:95%!important;padding:10px}.wpb-main #sidebar{width:100%}.wpb-main .restoreRow{margin-top:-50px;display:block}#wpbackitup-plupload-modal{width:100%!important;margin:0!important}.wpbiu-support-textarea{width:95%}.wpbiu-form-input{width:95%}}@media only screen and (min-width :768px) and (max-width:1024px){.wpb-main #content{width:100%}.wpbiu-select-box select{width:40%}.wpb-main #sidebar{width:100%}}#wpbackitup-core-settings{clear:both;overflow:hidden;padding:20px}#wpbackitup-core-settings div.updated{margin:0}#wpbackitup-core-settings .vue-tabs{margin-top:20px}#wpbackitup-core-settings .vue-tabs .nav-tabs a{text-decoration:none;color:#333;background-color:#dedede;font-size:20px}#wpbackitup-core-settings .vue-tabs a.custom-link{text-decoration:initial;color:#00f;background-color:transparent;font-size:14px;cursor:pointer}#wpbackitup-core-settings .vue-tabs .nav-tabs a:focus{box-shadow:none}#wpbackitup-core-settings .vue-tabs .tab-content{margin-top:20px}#wpbackitup-core-settings .vue-tabs .nav>li>a:focus,.vue-tabs .nav>li>a:hover{background-color:#dedede}#wpbackitup-core-settings .vue-tabs .nav-tabs>li>a{margin-right:20px}#wpbackitup-settings{width:65%}.wpb-main .widget{margin:20px 0}.vue-input-tag-wrapper{background-color:#fff;border:1px solid #ccc;overflow:hidden;padding-left:4px;padding-top:4px;cursor:text;text-align:left;-webkit-appearance:textfield}.vue-input-tag-wrapper .input-tag{background-color:#e5e5e5;border-radius:2px;border:1px solid #ccc;color:#363636;display:inline-block;font-size:13px;font-weight:400;margin-bottom:4px;margin-right:4px;padding:3px}.vue-input-tag-wrapper .input-tag .remove{cursor:pointer;font-weight:700;color:#363636;margin:0 2px}.vue-input-tag-wrapper .input-tag .remove:hover{text-decoration:none}.vue-input-tag-wrapper .input-tag .remove::before{content:" x"}.vue-input-tag-wrapper .new-tag{background:0 0;border:0;color:#777;font-size:13px;font-weight:400;margin-bottom:6px;margin-top:1px;outline:0;padding:4px;padding-left:0;width:150px;box-shadow:none!important;border-color:transparent!important}.vue-input-tag-wrapper.read-only{cursor:default}[v-cloak]{display:none}
|
2 |
* Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
|
3 |
* Copyright 2015 Daniel Cardoso <@DanielCardoso>
|
4 |
* Licensed under MIT
|
5 |
+
*/.la-ball-fall,.la-ball-fall>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-ball-fall{display:block;font-size:0;color:#fff}.la-ball-fall.la-dark{color:#333}.la-ball-fall>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-ball-fall{width:54px;height:18px}.la-ball-fall>div{width:10px;height:10px;margin:4px;border-radius:100%;opacity:0;-webkit-animation:ball-fall 1s ease-in-out infinite;-moz-animation:ball-fall 1s ease-in-out infinite;-o-animation:ball-fall 1s ease-in-out infinite;animation:ball-fall 1s ease-in-out infinite}.la-ball-fall>div:nth-child(1){-webkit-animation-delay:-.2s;-moz-animation-delay:-.2s;-o-animation-delay:-.2s;animation-delay:-.2s}.la-ball-fall>div:nth-child(2){-webkit-animation-delay:-.1s;-moz-animation-delay:-.1s;-o-animation-delay:-.1s;animation-delay:-.1s}.la-ball-fall>div:nth-child(3){-webkit-animation-delay:0s;-moz-animation-delay:0s;-o-animation-delay:0s;animation-delay:0s}.la-ball-fall.la-sm{width:26px;height:8px}.la-ball-fall.la-sm>div{width:4px;height:4px;margin:2px}.la-ball-fall.la-2x{width:108px;height:36px}.la-ball-fall.la-2x>div{width:20px;height:20px;margin:8px}.la-ball-fall.la-3x{width:162px;height:54px}.la-ball-fall.la-3x>div{width:30px;height:30px;margin:12px}@-webkit-keyframes ball-fall{0%{opacity:0;-webkit-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}80%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-webkit-transform:translateY(145%);transform:translateY(145%)}}@-moz-keyframes ball-fall{0%{opacity:0;-moz-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;-moz-transform:translateY(0);transform:translateY(0)}80%{opacity:1;-moz-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-moz-transform:translateY(145%);transform:translateY(145%)}}@-o-keyframes ball-fall{0%{opacity:0;-o-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;-o-transform:translateY(0);transform:translateY(0)}80%{opacity:1;-o-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-o-transform:translateY(145%);transform:translateY(145%)}}@keyframes ball-fall{0%{opacity:0;-webkit-transform:translateY(-145%);-moz-transform:translateY(-145%);-o-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}80%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-webkit-transform:translateY(145%);-moz-transform:translateY(145%);-o-transform:translateY(145%);transform:translateY(145%)}}.wpb-main .error{color:red}.wpb-main .warning{color:#feefb3}.wpb-main .wpbackitup-warning{color:#ff8000}.wpb-main .isa_cancelled,.wpb-main .isa_error,.wpb-main .isa_info,.wpb-main .isa_success,.wpb-main .isa_warning{border:1px solid;margin:10px 0;padding:15px 10px 15px 50px;background-repeat:no-repeat;background-position:10px center;-moz-border-radius:.5em;-webkit-border-radius:.5em;border-radius:.5em}.wpb-main .isa_info{color:#00529b;background-color:#bde5f8;background-image:url(../images/info.png)}.wpb-main .isa_success{color:#4f8a10;background-color:#dff2bf;background-image:url(../images/success.png)}.wpb-main .isa_warning{color:#9f6000;background-color:#feefb3;background-image:url(../images/warning.png)}.wpb-main .isa_error{color:#d8000c;background-color:#ffbaba;background-image:url(../images/error.png)}.wpb-main .isa_cancelled{color:#9f6000;background-color:#feefb3;background-image:url(../images/warning.png)}.wpb-main p{line-height:1.4em}.wpb-main h3{margin:0;padding:0;border-bottom:1px solid #eee}.wpb-main .wp-backitup-iframe{height:0;margin:0;padding:0;position:absolute;top:0;right:0;width:0;z-index:-1}.wpb-main .submit{padding:0}.wpb-main .notice-error,.wpb-main .notice-success,.wpb-main .notice-warning{background-repeat:no-repeat;margin:10px 20px 2px!important;padding:15px 10px 15px 50px;background-repeat:no-repeat;background-position:10px center}.wpb-main .notice-error{border-color:#d8000c;background-image:url(../images/error.png)}.wpb-main .notice-success{border-color:#7ad03a;background-image:url(../images/success.png)}.wpb-main .notice-warning{border-color:#9f6000;background-image:url(../images/warning.png)}#wp-backitup-notification-widget-close{cursor:pointer}.wpbackitup-get-premium{color:#d54e21}.wpb-main #content{float:left;width:65%}#content input[type=file],.wpb-main #content input[type=text]{padding:0}.wpb-main .status-icon{display:inline;height:16px;position:relative;top:3px;left:5px;visibility:hidden;width:16px}.wpb-main .backup-cancelled,.wpb-main .backup-error,.wpb-main .backup-errors,.wpb-main .backup-errors div,.wpb-main .backup-status,.wpb-main .backup-status span,.wpb-main .backup-success,.wpb-main .backup-success div,.wpb-main .backup-warning,.wpb-main .backup-warning div,.wpb-main .restore-errors,.wpb-main .restore-errors div,.wpb-main .restore-status,.wpb-main .restore-status span,.wpb-main .restore-success,.wpb-main .restore-success div,.wpb-main .upload-status,.wpb-main .upload-status span{display:none}.wpb-main #sidebar{float:right;width:30%}.wpb-main .widget{padding:1em;background-color:#fff;margin:20px}.wpb-main .cancel-hidden{display:none!important}.wpb-main .filters p label{display:block}.wpb-main ul.tagit{padding:1px 5px;overflow:auto;margin-left:inherit;margin-right:inherit}.wpb-main ul.tagit li{display:block;float:left;margin:2px 5px 2px 0}.wpb-main ul.tagit li.tagit-choice{position:relative;line-height:inherit}.wpb-main input.tagit-hidden-field{display:none}.wpb-main ul.tagit li.tagit-choice-read-only{padding:.2em .5em .2em .5em}.wpb-main ul.tagit li.tagit-choice-editable{padding:.2em 18px .2em .5em}.wpb-main ul.tagit li.tagit-new{padding:.25em 4px .25em 0}.wpb-main ul.tagit li.tagit-choice a.tagit-label{cursor:pointer;text-decoration:none}.wpb-main ul.tagit li.tagit-choice .tagit-close{cursor:pointer;position:absolute;right:.1em;top:50%;margin-top:-8px;line-height:17px}.wpb-main ul.tagit li.tagit-choice .tagit-close .text-icon{display:none}.wpb-main ul.tagit li.tagit-choice input{display:block;float:left;margin:2px 5px 2px 0}.wpb-main ul.tagit input[type=text]{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;border:none;margin:0;padding:0;width:inherit;background-color:inherit;outline:0}.wpb-main .dbfilters_section{overflow:hidden;clear:both;margin-top:-20px}.wpb-main .dbfilters_section h4{margin-bottom:2px}.dbfilters_section_right,.wpb-main .dbfilters_section_left{float:left;width:302px;margin-right:10px}.wpb-main .wpbackitup_connectedSortable{border:1px solid #eee;width:100%;min-height:20px;list-style-type:none;margin:0;padding:5px 0 0 0}.wpb-main .wpbackitup_connectedSortable li{margin:0 5px 5px 5px;padding:5px;font-size:1.2em;width:280px}.wpb-main .word-capitalize{text-transform:capitalize}.wpb-badge{position:absolute;right:0;top:0;background:url(../images/wpbackitup-logo.png) center top no-repeat;color:#32828b;display:inline-block;font-size:14px;font-weight:600;height:40px;margin:5px 0 0;padding-top:132px;text-align:center;text-rendering:optimizelegibility;width:150px}.wpb-main .success-grid{color:#4f8a10;background-color:#dff2bf;font-weight:700}.wpbackitup-topbar{position:relative;top:20px;overflow:hidden;clear:both;margin:0;width:98%;min-width:255px;padding:10px;background:#ddd none repeat scroll 0 0;border-radius:15px}.wpbackitup-topbar a,.wpbackitup-topbar h2{float:left;margin-left:5px;margin-right:25px}.wpbackitup-topbar h2{font-size:25px;font-weight:600;margin-top:25px}.wpbiu-button{float:right!important;margin-right:15px!important;margin-top:10px!important;margin-top:15px!important}.wpb-main #import-uploads{display:none}.wpb-main #import-uploads.button-secondary{margin-top:12px;background:#42b8dd!important;color:#fff!important}.wpb-main #import-uploads.button-secondary:hover{background:#45bce4!important;border-color:#aaa!important}.wpbiu-notes{overflow:hidden}.wpbiu-notes textarea{width:100%;height:60px;padding:5px}.wpbiu-notes button{width:15%;margin:5px 0!important}.wpbiu-notes span{margin-left:10px;color:green;display:none}.wpbiu-select-box select{display:block;margin:10px 0;width:15%}.wpbiu-support-textarea{width:270px;height:100px}.wpbiu-form-input{padding:3px!important}.wpb-main .downloadbackuplink>i{margin-left:10px}@media only screen and (max-width :767px){.wpb-main #content{width:100%}.wpbiu-select-box select{width:40%}.wpbackitup-topbar h2{font-size:18px}.wpbiu-button{float:left!important}.wpbackitup-topbar{width:86%;padding:20px}.wpb-main .widefat thead{display:none}.wpb-main .widefat tbody td{display:block;padding:.6rem;margin-left:.4rem}.wpb-main .widefat td:before{content:attr(data-th);font-weight:700;display:inline-block;width:100%;margin-bottom:.3rem;margin-left:-.3rem}.wpb-main #TB_window{margin-left:-50%!important;width:100%!important}.wpb-main #TB_ajaxContent{width:95%!important;padding:10px}.wpb-main #sidebar{width:100%}.wpb-main .restoreRow{margin-top:-50px;display:block}#wpbackitup-plupload-modal{width:100%!important;margin:0!important}.wpbiu-support-textarea{width:95%}.wpbiu-form-input{width:95%}}@media only screen and (min-width :768px) and (max-width:1024px){.wpb-main #content{width:100%}.wpbiu-select-box select{width:40%}.wpb-main #sidebar{width:100%}}#wpbackitup-core-settings{clear:both;overflow:hidden;padding:20px}#wpbackitup-core-settings div.updated{margin:0}#wpbackitup-core-settings .vue-tabs{margin-top:20px}#wpbackitup-core-settings .vue-tabs .nav-tabs a{text-decoration:none;color:#333;background-color:#dedede;font-size:20px}#wpbackitup-core-settings .vue-tabs a.custom-link{text-decoration:initial;color:#00f;background-color:transparent;font-size:14px;cursor:pointer}#wpbackitup-core-settings .vue-tabs .nav-tabs a:focus{box-shadow:none}#wpbackitup-core-settings .vue-tabs .tab-content{margin-top:20px}#wpbackitup-core-settings .vue-tabs .nav>li>a:focus,.vue-tabs .nav>li>a:hover{background-color:#dedede}#wpbackitup-core-settings .vue-tabs .nav-tabs>li>a{margin-right:20px}#wpbackitup-settings{width:65%}.wpb-main .widget{margin:20px 0}.vue-input-tag-wrapper{background-color:#fff;border:1px solid #ccc;overflow:hidden;padding-left:4px;padding-top:4px;cursor:text;text-align:left;-webkit-appearance:textfield}.vue-input-tag-wrapper .input-tag{background-color:#e5e5e5;border-radius:2px;border:1px solid #ccc;color:#363636;display:inline-block;font-size:13px;font-weight:400;margin-bottom:4px;margin-right:4px;padding:3px}.vue-input-tag-wrapper .input-tag .remove{cursor:pointer;font-weight:700;color:#363636;margin:0 2px}.vue-input-tag-wrapper .input-tag .remove:hover{text-decoration:none}.vue-input-tag-wrapper .input-tag .remove::before{content:" x"}.vue-input-tag-wrapper .new-tag{background:0 0;border:0;color:#777;font-size:13px;font-weight:400;margin-bottom:6px;margin-top:1px;outline:0;padding:4px;padding-left:0;width:150px;box-shadow:none!important;border-color:transparent!important}.vue-input-tag-wrapper.read-only{cursor:default}[v-cloak]{display:none}
|
lib/includes/class-admin-bar.php
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Toolbar for admin dashboard - used to display notices to user
|
5 |
+
*
|
6 |
+
* @since 1.21
|
7 |
+
* @package Wpbackitup_Premium
|
8 |
+
* @subpackage Wpbackitup_Premium/includes
|
9 |
+
* @author WP BackItUp <wpbackitup@wpbackitup.com>
|
10 |
+
*
|
11 |
+
*/
|
12 |
+
|
13 |
+
// Exit if accessed directly
|
14 |
+
if ( !defined( 'ABSPATH' ) ) exit;
|
15 |
+
|
16 |
+
|
17 |
+
class WPBackItUp_Admin_Bar {
|
18 |
+
|
19 |
+
private $status;
|
20 |
+
|
21 |
+
public function __construct() {
|
22 |
+
|
23 |
+
add_action( 'admin_bar_menu', array( $this, 'toolbar_notices_link' ), 999, 1 );
|
24 |
+
//add_action( 'wp_head', array( $this,'wpbackitup_load_admin_bar_style') );
|
25 |
+
add_action( 'admin_head', array( $this, 'load_admin_bar_style' ) );
|
26 |
+
|
27 |
+
$this->status = self::get_notice_status();
|
28 |
+
}
|
29 |
+
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Toolbar notices link
|
33 |
+
*
|
34 |
+
* @param $wp_admin_bar
|
35 |
+
*/
|
36 |
+
function toolbar_notices_link( $wp_admin_bar ) {
|
37 |
+
|
38 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
39 |
+
return;
|
40 |
+
}
|
41 |
+
|
42 |
+
//Style based on status
|
43 |
+
$message = esc_html__( 'All systems go!', 'wp-backitup' );
|
44 |
+
switch ($this->status) {
|
45 |
+
case 1: //Notice
|
46 |
+
$message = esc_html__( 'Important notices available!', 'wp-backitup' );
|
47 |
+
break;
|
48 |
+
case 2: //Error
|
49 |
+
$message = esc_html__( 'Backup has encountered errors!', 'wp-backitup' );
|
50 |
+
break;
|
51 |
+
}
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
$args = array( 'page' => 'wp-backitup-backup' );
|
56 |
+
$node = array(
|
57 |
+
'id' => 'wpbackitup_notices',
|
58 |
+
'parent' => null,
|
59 |
+
'group' => null,
|
60 |
+
'title' => '<span class="ab-icon"></span><span>WPBackItUp</span> ',
|
61 |
+
'href' => add_query_arg( $args, admin_url( 'admin.php' ) ),
|
62 |
+
'meta' => array(
|
63 |
+
'target' => '_self',
|
64 |
+
'title' => $message,
|
65 |
+
'class' => 'wpbackitup-notices',
|
66 |
+
),
|
67 |
+
);
|
68 |
+
|
69 |
+
$wp_admin_bar->add_node( $node );
|
70 |
+
}
|
71 |
+
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Load styles for toolbar
|
75 |
+
*
|
76 |
+
*/
|
77 |
+
function load_admin_bar_style() {
|
78 |
+
|
79 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
80 |
+
return;
|
81 |
+
}
|
82 |
+
|
83 |
+
//Dash-Icons
|
84 |
+
//https://developer.wordpress.org/resource/dashicons/#flag
|
85 |
+
|
86 |
+
//Style based on status
|
87 |
+
switch ($this->status) {
|
88 |
+
case 1: //Notice
|
89 |
+
echo '<style>#wpadminbar #wp-admin-bar-wpbackitup_notices .ab-icon:before { content: \'\\f227\'; top: 2px; color:orange;}</style>';
|
90 |
+
break;
|
91 |
+
case 2: //Error
|
92 |
+
echo '<style>#wpadminbar #wp-admin-bar-wpbackitup_notices .ab-icon:before { content: \'\\f534\'; top: 2px; color:red; }</style>';
|
93 |
+
break;
|
94 |
+
default: //Normal
|
95 |
+
echo '<style>#wpadminbar #wp-admin-bar-wpbackitup_notices .ab-icon:before { content: \'\\f321\'; top: 2px;}</style>';
|
96 |
+
}
|
97 |
+
|
98 |
+
}
|
99 |
+
|
100 |
+
private static function get_notice_status() {
|
101 |
+
return WPBackItUp_Utility::get_option('notice_status',0);
|
102 |
+
}
|
103 |
+
|
104 |
+
private static function set_notice_status( $status ) {
|
105 |
+
return WPBackItUp_Utility::set_option( 'notice_status',$status);
|
106 |
+
}
|
107 |
+
|
108 |
+
|
109 |
+
public static function backup_error( ) {
|
110 |
+
self::set_notice_status(2);
|
111 |
+
}
|
112 |
+
|
113 |
+
public static function backup_success( ) {
|
114 |
+
self::set_notice_status(0);
|
115 |
+
}
|
116 |
+
|
117 |
+
public static function set_notices_on( ) {
|
118 |
+
//If error already then dont update to warning
|
119 |
+
if (2!=self::get_notice_status()) {
|
120 |
+
self::set_notice_status(1);
|
121 |
+
}
|
122 |
+
}
|
123 |
+
|
124 |
+
public static function set_notices_off( ) {
|
125 |
+
//If error already then dont update to warning
|
126 |
+
if (2!=self::get_notice_status()) {
|
127 |
+
self::set_notice_status(0);
|
128 |
+
}
|
129 |
+
}
|
130 |
+
}
|
131 |
+
$wpb_admin_bar = new WPBackItUp_Admin_Bar();
|
132 |
+
|
133 |
+
|
lib/includes/class-admin-notice.php
CHANGED
@@ -251,6 +251,7 @@ if ( ! class_exists( 'WPBackitup_Admin_Notice' ) ) {
|
|
251 |
$notice['class'],
|
252 |
);
|
253 |
|
|
|
254 |
printf( '<div id="%3$s" class="%1$s"><p>%2$s</p></div>', trim( implode( ' ', $class ) ), $notice['content'], "wpbackitup-$id" );
|
255 |
|
256 |
}
|
@@ -479,6 +480,9 @@ if ( ! class_exists( 'WPBackitup_Admin_Notice' ) ) {
|
|
479 |
*/
|
480 |
public function dismiss_notice_ajax() {
|
481 |
|
|
|
|
|
|
|
482 |
if ( ! isset( $_POST['id'] ) || !isset( $_POST['temp_dismiss'] ) || !isset( $_POST['updated_at'])) {
|
483 |
echo 0;
|
484 |
exit;
|
251 |
$notice['class'],
|
252 |
);
|
253 |
|
254 |
+
WPBackItUp_Admin_Bar::set_notices_on();
|
255 |
printf( '<div id="%3$s" class="%1$s"><p>%2$s</p></div>', trim( implode( ' ', $class ) ), $notice['content'], "wpbackitup-$id" );
|
256 |
|
257 |
}
|
480 |
*/
|
481 |
public function dismiss_notice_ajax() {
|
482 |
|
483 |
+
//anytime dismiss is fired just set to 0 - IF any are visible it will get reset to 1
|
484 |
+
WPBackItUp_Admin_Bar::set_notices_off();
|
485 |
+
|
486 |
if ( ! isset( $_POST['id'] ) || !isset( $_POST['temp_dismiss'] ) || !isset( $_POST['updated_at'])) {
|
487 |
echo 0;
|
488 |
exit;
|
lib/includes/class-wpbackitup-admin.php
CHANGED
@@ -526,6 +526,11 @@ class WPBackitup_Admin {
|
|
526 |
//Settings Class
|
527 |
require_once( WPBACKITUP__PLUGIN_PATH . '/lib/includes/class-settings.php' );
|
528 |
|
|
|
|
|
|
|
|
|
|
|
529 |
$languages_path = dirname(dirname(dirname( plugin_basename( __FILE__ )))) . '/languages/';
|
530 |
|
531 |
load_plugin_textdomain(
|
526 |
//Settings Class
|
527 |
require_once( WPBACKITUP__PLUGIN_PATH . '/lib/includes/class-settings.php' );
|
528 |
|
529 |
+
|
530 |
+
//Admin Bar
|
531 |
+
require_once( WPBACKITUP__PLUGIN_PATH . '/lib/includes/class-admin-bar.php' );
|
532 |
+
|
533 |
+
|
534 |
$languages_path = dirname(dirname(dirname( plugin_basename( __FILE__ )))) . '/languages/';
|
535 |
|
536 |
load_plugin_textdomain(
|
lib/includes/job_backup.php
CHANGED
@@ -1256,14 +1256,18 @@ function end_backup($err=null, $success=null){
|
|
1256 |
global $WPBackitup,$wp_backup,$backup_logname,$current_job;
|
1257 |
WPBackItUp_Logger::log_info($backup_logname,__METHOD__,'Begin');
|
1258 |
|
|
|
1259 |
//Cleanup TMP folder on error - will dispatch before changing path below
|
1260 |
if (! $success) {
|
|
|
1261 |
WPBackItUp_Logger::log_warning($backup_logname,__METHOD__,'Cleanup on backup error.');
|
1262 |
//cleanup the manifest and sql files from root
|
1263 |
if ( $wp_backup->cleanup_current_backup_async('txt|sql|db|config') ) {
|
1264 |
//Warning - no need to error job
|
1265 |
WPBackItUp_Logger::log_warning($backup_logname,__METHOD__,'Cleanup on backup error could not be dispatched.');
|
1266 |
}
|
|
|
|
|
1267 |
}
|
1268 |
|
1269 |
$wp_backup->set_final_backup_path();
|
1256 |
global $WPBackitup,$wp_backup,$backup_logname,$current_job;
|
1257 |
WPBackItUp_Logger::log_info($backup_logname,__METHOD__,'Begin');
|
1258 |
|
1259 |
+
|
1260 |
//Cleanup TMP folder on error - will dispatch before changing path below
|
1261 |
if (! $success) {
|
1262 |
+
WPBackItUp_Admin_Bar::backup_error();
|
1263 |
WPBackItUp_Logger::log_warning($backup_logname,__METHOD__,'Cleanup on backup error.');
|
1264 |
//cleanup the manifest and sql files from root
|
1265 |
if ( $wp_backup->cleanup_current_backup_async('txt|sql|db|config') ) {
|
1266 |
//Warning - no need to error job
|
1267 |
WPBackItUp_Logger::log_warning($backup_logname,__METHOD__,'Cleanup on backup error could not be dispatched.');
|
1268 |
}
|
1269 |
+
}else {
|
1270 |
+
WPBackItUp_Admin_Bar::backup_success();
|
1271 |
}
|
1272 |
|
1273 |
$wp_backup->set_final_backup_path();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: backup, backups, back up, backup plugin, database backup, multisite backup
|
|
4 |
Requires at least: 3.8.0
|
5 |
Requires PHP: 5.2.4
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.
|
8 |
Author URI: https://www.wpbackitup.com
|
9 |
Donate link: https://www.wpbackitup.com
|
10 |
License: GPLv2 or later
|
@@ -215,6 +215,12 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
|
|
215 |
|
216 |
|
217 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
= 1.21 =
|
219 |
*Release Date - June 5, 2018
|
220 |
|
4 |
Requires at least: 3.8.0
|
5 |
Requires PHP: 5.2.4
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.21.0
|
8 |
Author URI: https://www.wpbackitup.com
|
9 |
Donate link: https://www.wpbackitup.com
|
10 |
License: GPLv2 or later
|
215 |
|
216 |
|
217 |
== Changelog ==
|
218 |
+
= 1.22 =
|
219 |
+
*Release Date - June 29, 2018
|
220 |
+
|
221 |
+
* NEW: Add WPBackItUp Toolbar
|
222 |
+
* UPDATE: Fix alignment on header in dashboard
|
223 |
+
|
224 |
= 1.21 =
|
225 |
*Release Date - June 5, 2018
|
226 |
|
wp-backitup.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
|
7 |
* Author: WPBackItUp
|
8 |
* Author URI: https://www.wpbackitup.com
|
9 |
-
* Version: 1.
|
10 |
* Text Domain: wp-backitup
|
11 |
*
|
12 |
* License: GPL3
|
@@ -32,7 +32,7 @@ define( 'WPBACKITUP__NAMESPACE', 'wp-backitup' );
|
|
32 |
define( 'WPBACKITUP__CLASSNAMESPACE', 'WPBackItUp' );
|
33 |
|
34 |
define( 'WPBACKITUP__MAJOR_VERSION', 1);
|
35 |
-
define( 'WPBACKITUP__MINOR_VERSION',
|
36 |
define( 'WPBACKITUP__MAINTENANCE_VERSION', 0); //Dont forget to update version in header on WP release
|
37 |
define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
|
38 |
|
6 |
* Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
|
7 |
* Author: WPBackItUp
|
8 |
* Author URI: https://www.wpbackitup.com
|
9 |
+
* Version: 1.22.0
|
10 |
* Text Domain: wp-backitup
|
11 |
*
|
12 |
* License: GPL3
|
32 |
define( 'WPBACKITUP__CLASSNAMESPACE', 'WPBackItUp' );
|
33 |
|
34 |
define( 'WPBACKITUP__MAJOR_VERSION', 1);
|
35 |
+
define( 'WPBACKITUP__MINOR_VERSION', 22);
|
36 |
define( 'WPBACKITUP__MAINTENANCE_VERSION', 0); //Dont forget to update version in header on WP release
|
37 |
define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
|
38 |
|