Go Live Update URLS - Version 6.1.2

Version Description

  • Improve admin form and selectors.
  • Fix filter name for go-live-update-urls/database/column-types.
  • Improve FAQs.
  • Support for PRO version 6.1.0.
Download this release

Release Info

Developer Mat Lipe
Plugin Icon 128x128 Go Live Update URLS
Version 6.1.2
Comparing to
See all releases

Code changes from version 6.1.1 to 6.1.2

Files changed (3) hide show
  1. go-live-update-urls.php +2 -2
  2. readme.txt +17 -3
  3. src/Admin.php +16 -12
go-live-update-urls.php CHANGED
@@ -5,13 +5,13 @@
5
  * Description: Updates all the URLs in the database to point to a new URL when making your site live or changing domains.
6
  * Author: OnPoint Plugins
7
  * Author URI: https://onpointplugins.com/
8
- * Version: 6.1.1
9
  * Text Domain: go-live-update-urls
10
  *
11
  * @package go-live-update-urls
12
  */
13
 
14
- define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.1.1' );
15
  define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.0.0' );
16
  define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
17
 
5
  * Description: Updates all the URLs in the database to point to a new URL when making your site live or changing domains.
6
  * Author: OnPoint Plugins
7
  * Author URI: https://onpointplugins.com/
8
+ * Version: 6.1.2
9
  * Text Domain: go-live-update-urls
10
  *
11
  * @package go-live-update-urls
12
  */
13
 
14
+ define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.1.2' );
15
  define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.0.0' );
16
  define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
17
 
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: Mat Lipe, onpointplugins
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40onpointplugins%2ecom&lc=US&item_name=Go%20Live%20Update%20Urls&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
4
  Tags: urls, launching, site changes, tools, domain, domains, domain changes, url changes
5
  Requires at least: 4.8.0
6
- Tested up to: 5.5.0
7
  Requires PHP: 5.6.0
8
- Stable tag: 6.1.1
9
 
10
  == Description ==
11
 
@@ -13,7 +13,7 @@ Goes through entire site and replaces all instances of an old url with a new one
13
 
14
  <strong>Check out <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">Go Live Update Urls PRO</a> for more features including support for tables created by plugins, the ability to test a URL before updating, update history, priority support, and so much more!</strong>
15
 
16
- <blockquote><a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">Pro version 6.0.0</a> is now available with a greatly improved testing and updating experience!</blockquote>
17
 
18
 
19
  <h3>Features</h3>
@@ -98,6 +98,12 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
98
  1. Typical settings page. The verbiage will change slightly depending on your database structure.
99
 
100
  == Changelog ==
 
 
 
 
 
 
101
  = 6.1.0 =
102
  * Automatically exclude non text database columns.
103
  * Support email addresses within serialized data.
@@ -106,6 +112,11 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
106
  * Support URL counting for upcoming <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">PRO</a> enhancements.
107
  * Tested to WordPress version 5.5.0
108
 
 
 
 
 
 
109
  = 6.0.0 =
110
  * Entirely new code structure.
111
  * Removed all deprecated code and filters.
@@ -167,6 +178,9 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
167
 
168
 
169
  == Upgrade Notice ==
 
 
 
170
  = 6.0.1 =
171
  Major version update. Not backward compatible with version 5 filters or code. Please remove any custom filters or extensions before updating.
172
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40onpointplugins%2ecom&lc=US&item_name=Go%20Live%20Update%20Urls&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
4
  Tags: urls, launching, site changes, tools, domain, domains, domain changes, url changes
5
  Requires at least: 4.8.0
6
+ Tested up to: 5.5.1
7
  Requires PHP: 5.6.0
8
+ Stable tag: 6.1.2
9
 
10
  == Description ==
11
 
13
 
14
  <strong>Check out <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">Go Live Update Urls PRO</a> for more features including support for tables created by plugins, the ability to test a URL before updating, update history, priority support, and so much more!</strong>
15
 
16
+ <blockquote><a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">Pro version 6.1.0</a> is now available with a greatly improved testing and updating experience!</blockquote>
17
 
18
 
19
  <h3>Features</h3>
98
  1. Typical settings page. The verbiage will change slightly depending on your database structure.
99
 
100
  == Changelog ==
101
+ = 6.1.2 =
102
+ * Improve admin form and selectors.
103
+ * Fix filter name for `go-live-update-urls/database/column-types`.
104
+ * Improve FAQs.
105
+ * Support for PRO version 6.1.0.
106
+
107
  = 6.1.0 =
108
  * Automatically exclude non text database columns.
109
  * Support email addresses within serialized data.
112
  * Support URL counting for upcoming <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">PRO</a> enhancements.
113
  * Tested to WordPress version 5.5.0
114
 
115
+ = 6.0.1 -
116
+ * Improve compatibility with very old versions of PRO.
117
+ * Improve the readme.
118
+ * Add links for the documentation and troubleshooting.
119
+
120
  = 6.0.0 =
121
  * Entirely new code structure.
122
  * Removed all deprecated code and filters.
178
 
179
 
180
  == Upgrade Notice ==
181
+ = 6.1.2 =
182
+ Update to support PRO version 6.1.0.
183
+
184
  = 6.0.1 =
185
  Major version update. Not backward compatible with version 5 filters or code. Please remove any custom filters or extensions before updating.
186
 
src/Admin.php CHANGED
@@ -13,6 +13,8 @@ use Go_Live_Update_Urls\Traits\Singleton;
13
  class Admin {
14
  use Singleton;
15
 
 
 
16
  const OLD_URL = 'old_url';
17
  const NEW_URL = 'new_url';
18
  const NONCE = 'go-live-update-urls/nonce/update-tables';
@@ -89,7 +91,7 @@ class Admin {
89
  * @return void
90
  */
91
  public function failure_message() {
92
- add_action( 'admin_notices', function () {
93
  ?>
94
  <div id="message" class="error fade">
95
  <p>
@@ -153,7 +155,10 @@ class Admin {
153
  }
154
  ?>
155
 
156
- <form method="post" class="go-live-update-urls/admin/checkbox-form">
 
 
 
157
  <?php
158
  wp_nonce_field( self::NONCE, self::NONCE );
159
 
@@ -214,7 +219,7 @@ class Admin {
214
 
215
  ?>
216
  <hr />
217
- <table class="form-table" data-js="go-live-update-urls/admin/url-fields">
218
  <tr>
219
  <th scope="row" style="width:150px;">
220
  <label for="old_url">
@@ -248,14 +253,15 @@ class Admin {
248
  </td>
249
  </tr>
250
  </table>
251
- <p class="description" data-js="go-live-update-urls/admin/only-checked-tables">
252
- <strong>
253
- <?php esc_html_e( 'Only the checked tables will be updated.', 'go-live-update-urls' ); ?>
254
- </strong>
255
- </p>
256
  <?php
257
  if ( apply_filters( 'go-live-update-urls-pro/admin/use-default-checkboxes', true ) ) {
258
  ?>
 
 
 
 
 
259
  <p class="description" style="color:#23282d">
260
  <strong>
261
  <?php
@@ -277,8 +283,8 @@ class Admin {
277
  /**
278
  * Creates a list of checkboxes for each table
279
  *
280
- * @param array $tables - List of all tables.
281
- * @param string $list - Used by js to separate lists.
282
  * @param bool $checked - Should all checkboxes be checked.
283
  *
284
  * @since 5.0.0
@@ -291,7 +297,6 @@ class Admin {
291
  class="go-live-update-urls/checkboxes go-live-update-urls/checkboxes/<?php echo esc_attr( $list ); ?>"
292
  data-list="<?php echo esc_attr( $list ); ?>">
293
  <?php
294
-
295
  foreach ( $tables as $_table ) {
296
  ?>
297
  <li>
@@ -301,7 +306,6 @@ class Admin {
301
  </li>
302
  <?php
303
  }
304
-
305
  ?>
306
  </ul>
307
  <?php
13
  class Admin {
14
  use Singleton;
15
 
16
+ const FORM_WRAP = 'go-live-update-urls/admin/form';
17
+ const INPUTS_WRAP = 'go-live-update-urls/admin/url-fields';
18
  const OLD_URL = 'old_url';
19
  const NEW_URL = 'new_url';
20
  const NONCE = 'go-live-update-urls/nonce/update-tables';
91
  * @return void
92
  */
93
  public function failure_message() {
94
+ add_action( 'admin_notices', static function () {
95
  ?>
96
  <div id="message" class="error fade">
97
  <p>
155
  }
156
  ?>
157
 
158
+ <form
159
+ method="post"
160
+ class="go-live-update-urls/admin/checkbox-form"
161
+ data-js="<?php echo esc_attr( static::FORM_WRAP ); ?>">
162
  <?php
163
  wp_nonce_field( self::NONCE, self::NONCE );
164
 
219
 
220
  ?>
221
  <hr />
222
+ <table class="form-table" data-js="<?php echo esc_attr( static::INPUTS_WRAP ); ?>">
223
  <tr>
224
  <th scope="row" style="width:150px;">
225
  <label for="old_url">
253
  </td>
254
  </tr>
255
  </table>
256
+
 
 
 
 
257
  <?php
258
  if ( apply_filters( 'go-live-update-urls-pro/admin/use-default-checkboxes', true ) ) {
259
  ?>
260
+ <p class="description">
261
+ <strong>
262
+ <?php esc_html_e( 'Only the checked tables will be updated.', 'go-live-update-urls' ); ?>
263
+ </strong>
264
+ </p>
265
  <p class="description" style="color:#23282d">
266
  <strong>
267
  <?php
283
  /**
284
  * Creates a list of checkboxes for each table
285
  *
286
+ * @param array $tables - List of all tables.
287
+ * @param string $list - Used by js to separate lists.
288
  * @param bool $checked - Should all checkboxes be checked.
289
  *
290
  * @since 5.0.0
297
  class="go-live-update-urls/checkboxes go-live-update-urls/checkboxes/<?php echo esc_attr( $list ); ?>"
298
  data-list="<?php echo esc_attr( $list ); ?>">
299
  <?php
 
300
  foreach ( $tables as $_table ) {
301
  ?>
302
  <li>
306
  </li>
307
  <?php
308
  }
 
309
  ?>
310
  </ul>
311
  <?php