WP Rollback - Version 1.7.0

Version Description

  • Tweak: Removed the WP Time Capsule staging button and banner.
Download this release

Release Info

Developer dlocc
Plugin Icon 128x128 WP Rollback
Version 1.7.0
Comparing to
See all releases

Code changes from version 1.6 to 1.7.0

assets/css/wp-rollback.css CHANGED
@@ -159,30 +159,3 @@
159
  .wpr-version-list{
160
  width: 800px;
161
  }
162
- .wpr-wptc-upsell-banner{
163
- position: absolute;
164
- margin-left: 840px;
165
- margin-top: -70px;
166
- }
167
-
168
- .wpr-wptc-button-external-icon-fix{
169
- margin-top: 4px;
170
- margin-left: 4px;
171
- font-size: 16px;
172
- }
173
-
174
- .wpr-wptc-link-external-icon-fix{
175
- font-size: 14px;
176
- margin-left: -3px;
177
- }
178
-
179
- .wpr-wptc-link-external-icon-fix{
180
- font-size: 14px;
181
- margin-left: -3px;
182
- }
183
-
184
- .wpr-wptc-upsell-text{
185
- font-size: 12px;
186
- text-align: center;
187
- padding-bottom: 10px;
188
- }
159
  .wpr-version-list{
160
  width: 800px;
161
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/rollback-menu.php CHANGED
@@ -27,10 +27,6 @@ $plugins = get_plugins();
27
 
28
  <div class="wpr-changelog"></div>
29
  </div>
30
- <div class="wpr-wptc-upsell-banner">
31
- <div class="wpr-wptc-upsell-text">Our Backup &amp; Staging Partner</div>
32
- <a href="https://wptimecapsule.com/?partner=impress"><img class="wptc-class" src="https://infinitewp-m7fzg7jh9vyw.netdna-ssl.com/wp-content/uploads/2018/05/wptc-rollback.jpg"></a>
33
- </div>
34
 
35
  <?php
36
  // A: Plugin rollbacks in first conditional:
@@ -74,7 +70,6 @@ $plugins = get_plugins();
74
 
75
  <div class="wpr-submit-wrap">
76
  <a href="#wpr-modal-confirm" class="magnific-popup button-primary wpr-rollback-disabled"><?php _e( 'Rollback', 'wp-rollback' ); ?></a>
77
- <a href="https://wptimecapsule.com/staging/?partner=impress" class="button-primary" target="_blank" ><?php _e( 'Test Rollback on Staging', 'wp-rollback' ); ?><span class="dashicons dashicons-external wpr-wptc-button-external-icon-fix"></span></a>
78
  <input type="button" value="<?php _e( 'Cancel', 'wp-rollback' ); ?>" class="button" onclick="location.href='<?php echo wp_get_referer(); ?>';" />
79
  </div>
80
  <?php do_action( 'wpr_hidden_fields' ); ?>
@@ -131,15 +126,12 @@ $plugins = get_plugins();
131
  </table>
132
  </div>
133
  <div class="wpr-error">
134
- <p>
135
- <?php
136
- _e( '<strong>Notice:</strong> We strongly recommend you perform a <a href="https://wptimecapsule.com/staging/?partner=impress" target="_blank">test rollback on a staging site</a> and <a href="https://wptimecapsule.com/incremental-backups/?partner=impress" target="_blank">create a complete backup</a> of your WordPress files and database prior to performing a rollback. We are not responsible for any misuse, deletions, white screens, fatal errors, or any other issue arising from using this plugin.', 'wp-rollback' );
137
- ?>
138
- </p>
139
  </div>
140
  <?php do_action( 'wpr_pre_rollback_buttons' ); ?>
141
  <input type="submit" value="<?php _e( 'Rollback', 'wp-rollback' ); ?>" class="button-primary wpr-go" />
142
- <a href="https://wptimecapsule.com/staging/?partner=impress" class="button-primary" target="_blank"><?php _e( 'Test Rollback on Staging', 'wp-rollback' ); ?><span class="dashicons dashicons-external wpr-wptc-button-external-icon-fix"></span></a>
143
  <a href="#" class="button wpr-close"><?php _e( 'Cancel', 'wp-rollback' ); ?></a>
144
  <?php do_action( 'wpr_post_rollback_buttons' ); ?>
145
  </div>
27
 
28
  <div class="wpr-changelog"></div>
29
  </div>
 
 
 
 
30
 
31
  <?php
32
  // A: Plugin rollbacks in first conditional:
70
 
71
  <div class="wpr-submit-wrap">
72
  <a href="#wpr-modal-confirm" class="magnific-popup button-primary wpr-rollback-disabled"><?php _e( 'Rollback', 'wp-rollback' ); ?></a>
 
73
  <input type="button" value="<?php _e( 'Cancel', 'wp-rollback' ); ?>" class="button" onclick="location.href='<?php echo wp_get_referer(); ?>';" />
74
  </div>
75
  <?php do_action( 'wpr_hidden_fields' ); ?>
126
  </table>
127
  </div>
128
  <div class="wpr-error">
129
+ <p><?php
130
+ _e( '<strong>Notice:</strong> We strongly recommend you <strong>create a complete backup</strong> of your WordPress files and database prior to performing a rollback. We are not responsible for any misuse, deletions, white screens, fatal errors, or any other issue resulting from the use of this plugin.', 'wp-rollback' );
131
+ ?></p>
 
 
132
  </div>
133
  <?php do_action( 'wpr_pre_rollback_buttons' ); ?>
134
  <input type="submit" value="<?php _e( 'Rollback', 'wp-rollback' ); ?>" class="button-primary wpr-go" />
 
135
  <a href="#" class="button wpr-close"><?php _e( 'Cancel', 'wp-rollback' ); ?></a>
136
  <?php do_action( 'wpr_post_rollback_buttons' ); ?>
137
  </div>
languages/wp-rollback.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2018 WP Rollback
2
  # This file is distributed under the same license as the WP Rollback package.
3
  msgid ""
4
  msgstr ""
@@ -7,7 +7,7 @@ msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
11
  "Language-Team: Impress.org <info@impress.org>\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -40,82 +40,82 @@ msgstr ""
40
  msgid "plugin"
41
  msgstr ""
42
 
43
- #: includes/rollback-menu.php:46
44
  msgid "Oh no! We're missing required rollback query strings. Please contact support so we can check this bug out and squash it!"
45
  msgstr ""
46
 
47
- #: includes/rollback-menu.php:68, includes/rollback-menu.php:126, wp-rollback.php:263, wp-rollback.php:570, wp-rollback.php:570, wp-rollback.php:640, wp-rollback.php:691
48
  msgid "Rollback"
49
  msgstr ""
50
 
51
- #: includes/rollback-menu.php:69, includes/rollback-menu.php:127
52
- msgid "Test Rollback on Staging"
53
- msgstr ""
54
-
55
- #: includes/rollback-menu.php:70, includes/rollback-menu.php:128
56
  msgid "Cancel"
57
  msgstr ""
58
 
59
- #: includes/rollback-menu.php:88
60
  msgid "Are you sure you want to perform the following rollback?"
61
  msgstr ""
62
 
63
- #: includes/rollback-menu.php:97
64
  msgid "Plugin Name:"
65
  msgstr ""
66
 
67
- #: includes/rollback-menu.php:99
68
  msgid "Theme Name:"
69
  msgstr ""
70
 
71
- #: includes/rollback-menu.php:106
72
  msgid "Installed Version:"
73
  msgstr ""
74
 
75
- #: includes/rollback-menu.php:112
76
  msgid "New Version:"
77
  msgstr ""
78
 
79
- #: includes/rollback-menu.php:122
80
- msgid "<strong>Notice:</strong> We strongly recommend you perform a <a href=\"https://wptimecapsule.com/staging/?partner=impress\" target=\"_blank\">test rollback on a staging site</a> and <a href=\"https://wptimecapsule.com/incremental-backups/?partner=impress\" target=\"_blank\">create a complete backup</a> of your WordPress files and database prior to performing a rollback. We are not responsible for any misuse, deletions, white screens, fatal errors, or any other issue arising from using this plugin."
81
  msgstr ""
82
 
83
  #: wp-rollback.php:148, wp-rollback.php:160
84
  msgid "Cheatin&#8217; huh?"
85
  msgstr ""
86
 
87
- #: wp-rollback.php:264
88
  msgid "No Rollback Available: This is a non-WordPress.org theme."
89
  msgstr ""
90
 
91
- #: wp-rollback.php:265
92
  msgid "Loading..."
93
  msgstr ""
94
 
95
- #: wp-rollback.php:294
96
  msgid "Sorry, we couldn't find a changelog entry found for this version. Try checking the <a href=\"%s\" target=\"_blank\">developer log</a> on WP.org."
97
  msgstr ""
98
 
99
- #: wp-rollback.php:295
100
  msgid "Please select a version number to perform a rollback."
101
  msgstr ""
102
 
103
- #: wp-rollback.php:340
104
  msgid "You do not have sufficient permissions to perform rollbacks for this site."
105
  msgstr ""
106
 
107
- #: wp-rollback.php:506
 
 
 
 
108
  msgid "Installed Version"
109
  msgstr ""
110
 
111
- #: wp-rollback.php:513
112
  msgid "View Changelog"
113
  msgstr ""
114
 
115
- #: wp-rollback.php:807
116
  msgid "An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href=\"https://wordpress.org/support/\">support forums</a>."
117
  msgstr ""
118
 
119
- #: wp-rollback.php:807
120
  msgid "(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)"
121
  msgstr ""
1
+ # Copyright (C) 2019 WP Rollback
2
  # This file is distributed under the same license as the WP Rollback package.
3
  msgid ""
4
  msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
11
  "Language-Team: Impress.org <info@impress.org>\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
40
  msgid "plugin"
41
  msgstr ""
42
 
43
+ #: includes/rollback-menu.php:47
44
  msgid "Oh no! We're missing required rollback query strings. Please contact support so we can check this bug out and squash it!"
45
  msgstr ""
46
 
47
+ #: includes/rollback-menu.php:72, includes/rollback-menu.php:134, wp-rollback.php:266, wp-rollback.php:582, wp-rollback.php:582, wp-rollback.php:657, wp-rollback.php:712
48
  msgid "Rollback"
49
  msgstr ""
50
 
51
+ #: includes/rollback-menu.php:73, includes/rollback-menu.php:135
 
 
 
 
52
  msgid "Cancel"
53
  msgstr ""
54
 
55
+ #: includes/rollback-menu.php:92
56
  msgid "Are you sure you want to perform the following rollback?"
57
  msgstr ""
58
 
59
+ #: includes/rollback-menu.php:103
60
  msgid "Plugin Name:"
61
  msgstr ""
62
 
63
+ #: includes/rollback-menu.php:105
64
  msgid "Theme Name:"
65
  msgstr ""
66
 
67
+ #: includes/rollback-menu.php:114
68
  msgid "Installed Version:"
69
  msgstr ""
70
 
71
+ #: includes/rollback-menu.php:120
72
  msgid "New Version:"
73
  msgstr ""
74
 
75
+ #: includes/rollback-menu.php:130
76
+ msgid "<strong>Notice:</strong> We strongly recommend you <strong>create a complete backup</strong> of your WordPress files and database prior to performing a rollback. We are not responsible for any misuse, deletions, white screens, fatal errors, or any other issue resulting from the use of this plugin."
77
  msgstr ""
78
 
79
  #: wp-rollback.php:148, wp-rollback.php:160
80
  msgid "Cheatin&#8217; huh?"
81
  msgstr ""
82
 
83
+ #: wp-rollback.php:267
84
  msgid "No Rollback Available: This is a non-WordPress.org theme."
85
  msgstr ""
86
 
87
+ #: wp-rollback.php:268
88
  msgid "Loading..."
89
  msgstr ""
90
 
91
+ #: wp-rollback.php:299
92
  msgid "Sorry, we couldn't find a changelog entry found for this version. Try checking the <a href=\"%s\" target=\"_blank\">developer log</a> on WP.org."
93
  msgstr ""
94
 
95
+ #: wp-rollback.php:300
96
  msgid "Please select a version number to perform a rollback."
97
  msgstr ""
98
 
99
+ #: wp-rollback.php:346
100
  msgid "You do not have sufficient permissions to perform rollbacks for this site."
101
  msgstr ""
102
 
103
+ #: wp-rollback.php:497
104
+ msgid "It appears there are no version to select. This is likely due to the %s author not using tags for their versions and only committing new releases to the repository trunk."
105
+ msgstr ""
106
+
107
+ #: wp-rollback.php:517
108
  msgid "Installed Version"
109
  msgstr ""
110
 
111
+ #: wp-rollback.php:524
112
  msgid "View Changelog"
113
  msgstr ""
114
 
115
+ #: wp-rollback.php:828
116
  msgid "An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href=\"https://wordpress.org/support/\">support forums</a>."
117
  msgstr ""
118
 
119
+ #: wp-rollback.php:828
120
  msgid "(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)"
121
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dlocc, drrobotnik, webdevmattcrom, impressorg, givewp
3
  Tags: rollback, revert, downgrade, version, plugins, themes, version, versions, backup, backups, revision, revisions
4
  Requires at least: 4.8
5
  Donate Link: https://impress.org
6
- Tested up to: 5.0
7
- Stable tag: 1.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -75,7 +75,7 @@ WP Rollback only works with plugins or themes installed from the WordPress Repos
75
 
76
  = I rolled my [insert plugin name] back to version X.X and now my site is broken. This is your fault. =
77
 
78
- Nope. We warned you in **bold** print several times in many places. And our plugin delivered exactly what it said it would do. May the gods of the Internet pity your broken site's soul.
79
 
80
  = Where is the complete documentation located? =
81
 
@@ -85,10 +85,6 @@ The documentation for this plugin is located on our [Github Wiki](https://github
85
 
86
  Yes! All strings are internationalized and ready to be translated. Simply use the languages/wp-rollback.pot file and your favorite translation tool. Once finished, please reach out to us on the WordPress.org forums or better yet, submit a pull request on the [Github Repo](https://github.com/impress-org/wp-rollback/).
87
 
88
- = Did this plugin with WordCamp Orange County's Plugin-Palooza? =
89
-
90
- Heck yes it did! The Impress.org team took home the gold.
91
-
92
  == Screenshots ==
93
 
94
  1. The Rollback link on the Plugins page.
@@ -111,7 +107,10 @@ This is the first version of this plugin. It is a tool for your convenience. Rol
111
 
112
  == Changelog ==
113
 
114
- = 1.6 =
 
 
 
115
  * New: You now have the ability to rollback to the trunk for plugins. This is useful for beta testing releases and more. Thanks to [karpstrucking](https://github.com/karpstrucking) for making this happen. [#45](https://github.com/impress-org/wp-rollback/issues/45)
116
  * New: Add actions "wpr_plugin_success", "wpr_plugin_failure", "wpr_theme_success", and "wpr_theme_failure" for developers.
117
  * New: If a plugin or theme does not have any tagged releases to select from then then an informative notice appears rather than empty space for a better user experience. [#42](https://github.com/impress-org/wp-rollback/issues/42)
@@ -160,7 +159,6 @@ This is the first version of this plugin. It is a tool for your convenience. Rol
160
  * Fixed "Cancel" button which was falsely submitting the form.
161
 
162
  = 1.0 =
163
-
164
  * Initial plugin release. Yippee!
165
  * Adds "Rollback" link to all plugins from the WordPress repo on the plugin screen.
166
  * Adds "Rollback" link to all themes from the WordPress repo inside the modal details screen.
3
  Tags: rollback, revert, downgrade, version, plugins, themes, version, versions, backup, backups, revision, revisions
4
  Requires at least: 4.8
5
  Donate Link: https://impress.org
6
+ Tested up to: 5.4
7
+ Stable tag: 1.7.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
75
 
76
  = I rolled my [insert plugin name] back to version X.X and now my site is broken. This is your fault. =
77
 
78
+ Nope. We warned you in **bold** print several times in many places. And our plugin delivered exactly what it said it would do. May the Gods of the internet pity your broken site's soul.
79
 
80
  = Where is the complete documentation located? =
81
 
85
 
86
  Yes! All strings are internationalized and ready to be translated. Simply use the languages/wp-rollback.pot file and your favorite translation tool. Once finished, please reach out to us on the WordPress.org forums or better yet, submit a pull request on the [Github Repo](https://github.com/impress-org/wp-rollback/).
87
 
 
 
 
 
88
  == Screenshots ==
89
 
90
  1. The Rollback link on the Plugins page.
107
 
108
  == Changelog ==
109
 
110
+ = 1.7.0 =
111
+ * Tweak: Removed the WP Time Capsule staging button and banner.
112
+
113
+ = 1.6.0 =
114
  * New: You now have the ability to rollback to the trunk for plugins. This is useful for beta testing releases and more. Thanks to [karpstrucking](https://github.com/karpstrucking) for making this happen. [#45](https://github.com/impress-org/wp-rollback/issues/45)
115
  * New: Add actions "wpr_plugin_success", "wpr_plugin_failure", "wpr_theme_success", and "wpr_theme_failure" for developers.
116
  * New: If a plugin or theme does not have any tagged releases to select from then then an informative notice appears rather than empty space for a better user experience. [#42](https://github.com/impress-org/wp-rollback/issues/42)
159
  * Fixed "Cancel" button which was falsely submitting the form.
160
 
161
  = 1.0 =
 
162
  * Initial plugin release. Yippee!
163
  * Adds "Rollback" link to all plugins from the WordPress repo on the plugin screen.
164
  * Adds "Rollback" link to all themes from the WordPress repo inside the modal details screen.
wp-rollback.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Rollback (or forward) any WordPress.org plugin or theme like a boss.
6
  * Author: Impress.org
7
  * Author URI: https://impress.org/
8
- * Version: 1.6
9
  * Text Domain: wp-rollback
10
  * Domain Path: /languages
11
  *
5
  * Description: Rollback (or forward) any WordPress.org plugin or theme like a boss.
6
  * Author: Impress.org
7
  * Author URI: https://impress.org/
8
+ * Version: 1.7.0
9
  * Text Domain: wp-rollback
10
  * Domain Path: /languages
11
  *