Go Live Update URLS - Version 6.3.0

Version Description

  • Improved readme.
  • Improved plugin headers.
  • Required WordPress version 5.2.0+.
Download this release

Release Info

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

Code changes from version 6.2.2 to 6.3.0

go-live-update-urls.php CHANGED
@@ -5,13 +5,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.2.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.2.2' );
15
  define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.2.4' );
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.3.0
9
  * Text Domain: go-live-update-urls
10
+ * Domain Path: /languages/
11
+ * Network: false
12
+ * Requires at least: 5.2.0
13
+ * Requires PHP: 5.6.0
14
  *
15
  * @package go-live-update-urls
16
  */
17
 
18
+ define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.3.0' );
19
  define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.2.4' );
20
  define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
21
 
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  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.6.0
7
  Requires PHP: 5.6.0
8
- Stable tag: 6.2.2
9
 
10
  == Description ==
11
 
@@ -102,25 +102,30 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
102
  3. Update prevented due to incomplete data entered.
103
 
104
  == Changelog ==
 
 
 
 
 
105
  = 6.2.2 =
106
  * Pass option value when flushing Elementor cache to prevent edge case conflicts.
107
- * Improve counting of urls across subdomains.
108
- * Improve counting of urls across serialized data.
109
  * Support replacing non subdomain values which duplicate because the old URL exists within the new URL.
110
- * Introduce `go-live-update-urls/database/after-counting` action.
111
- * Introduce `go-live-update-urls/database/before-counting` action
112
 
113
  = 6.2.1 =
114
  * Automatically flush Elementor's CSS cache during updates.
115
  * Update screenshots and captions.
116
- * Introduce new `go-live-update-urls-pro/admin/use-default-inputs` filter.
117
  * Add CSS classes to form elements on tools page.
118
  * Fix spacing of banners on tools page.
119
- * Improve PHPCS implementation.
120
 
121
  = 6.2.0 =
122
  * Redesign tools page for a modern block look.
123
- * Improve various verbiage.
124
  * Update all translations.
125
  * More gracefully handle version conflicts with PRO.
126
  * Support for PRO version 6.2.0.
@@ -133,22 +138,22 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
133
  * Support WordPress version 5.5.1
134
 
135
  = 6.1.2 =
136
- * Improve admin form and selectors.
137
  * Fix filter name for `go-live-update-urls/database/column-types`.
138
- * Improve FAQs.
139
  * Support for PRO version 6.1.0.
140
 
141
  = 6.1.0 =
142
  * Automatically exclude non text database columns.
143
  * Support email addresses within serialized data.
144
- * Greatly improve database update performance.
145
  * Split database update steps into their own class.
146
  * Support URL counting for upcoming <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">PRO</a> enhancements.
147
  * Tested to WordPress version 5.5.0
148
 
149
  = 6.0.1 =
150
- * Improve compatibility with very old versions of PRO.
151
- * Improve the readme.
152
  * Add links for the documentation and troubleshooting.
153
 
154
  = 6.0.0 =
@@ -161,8 +166,8 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
161
  * Display error message when no tables are selected during update.
162
  * Fix bug when updating columns which are name the same as MySQL commands.
163
  * Remove confusing '- Serialized' label from checkboxes list.
164
- * Improve stability to modernize code some code.
165
- * Introduce `go-live-update-urls/views/admin-tools-page/disable-description` filter.
166
  * Cleanup some long deprecated code.
167
 
168
  = 5.2.12 =
@@ -183,8 +188,8 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
183
  = 5.0.0 =
184
  * Bring back PHP 5.2 support
185
  * Restructure entire codebase
186
- * Greatly improve security
187
- * Improve performance
188
  * UI improvements
189
  * Use strict WP coding standards
190
 
2
  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: 5.2.0
6
  Tested up to: 5.6.0
7
  Requires PHP: 5.6.0
8
+ Stable tag: 6.3.0
9
 
10
  == Description ==
11
 
102
  3. Update prevented due to incomplete data entered.
103
 
104
  == Changelog ==
105
+ = 6.3.0 =
106
+ * Improved readme.
107
+ * Improved plugin headers.
108
+ * Required WordPress version 5.2.0+.
109
+
110
  = 6.2.2 =
111
  * Pass option value when flushing Elementor cache to prevent edge case conflicts.
112
+ * Improved counting of urls across subdomains.
113
+ * Improved counting of urls across serialized data.
114
  * Support replacing non subdomain values which duplicate because the old URL exists within the new URL.
115
+ * Introduced `go-live-update-urls/database/after-counting` action.
116
+ * Introduced `go-live-update-urls/database/before-counting` action
117
 
118
  = 6.2.1 =
119
  * Automatically flush Elementor's CSS cache during updates.
120
  * Update screenshots and captions.
121
+ * Introduced new `go-live-update-urls-pro/admin/use-default-inputs` filter.
122
  * Add CSS classes to form elements on tools page.
123
  * Fix spacing of banners on tools page.
124
+ * Improved PHPCS implementation.
125
 
126
  = 6.2.0 =
127
  * Redesign tools page for a modern block look.
128
+ * Improved various verbiage.
129
  * Update all translations.
130
  * More gracefully handle version conflicts with PRO.
131
  * Support for PRO version 6.2.0.
138
  * Support WordPress version 5.5.1
139
 
140
  = 6.1.2 =
141
+ * Improved admin form and selectors.
142
  * Fix filter name for `go-live-update-urls/database/column-types`.
143
+ * Improved FAQs.
144
  * Support for PRO version 6.1.0.
145
 
146
  = 6.1.0 =
147
  * Automatically exclude non text database columns.
148
  * Support email addresses within serialized data.
149
+ * Greatly improved database update performance.
150
  * Split database update steps into their own class.
151
  * Support URL counting for upcoming <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">PRO</a> enhancements.
152
  * Tested to WordPress version 5.5.0
153
 
154
  = 6.0.1 =
155
+ * Improved compatibility with very old versions of PRO.
156
+ * Improved the readme.
157
  * Add links for the documentation and troubleshooting.
158
 
159
  = 6.0.0 =
166
  * Display error message when no tables are selected during update.
167
  * Fix bug when updating columns which are name the same as MySQL commands.
168
  * Remove confusing '- Serialized' label from checkboxes list.
169
+ * Improved stability to modernize code some code.
170
+ * Introduced `go-live-update-urls/views/admin-tools-page/disable-description` filter.
171
  * Cleanup some long deprecated code.
172
 
173
  = 5.2.12 =
188
  = 5.0.0 =
189
  * Bring back PHP 5.2 support
190
  * Restructure entire codebase
191
+ * Greatly improved security
192
+ * Improved performance
193
  * UI improvements
194
  * Use strict WP coding standards
195
 
src/Serialized.php CHANGED
@@ -132,9 +132,7 @@ class Serialized {
132
  /**
133
  * Replaces all the occurrences of a string in a multi-dimensional array or Object
134
  *
135
- * @param iterable|string $data - Data to change.
136
- *
137
- * @uses itself to call each level of the array
138
  *
139
  * @since 5.2.0
140
  *
@@ -201,12 +199,12 @@ class Serialized {
201
  return false;
202
  }
203
 
204
- if ( strpos( $mysql_value, $this->old ) !== false ) {
205
  return true;
206
  }
207
 
208
  foreach ( Repo::instance()->get_updaters() as $_updater ) {
209
- if ( strpos( $mysql_value, $_updater::apply_rule_to_url( $this->old ) ) !== false ) {
210
  return true;
211
  }
212
  }
132
  /**
133
  * Replaces all the occurrences of a string in a multi-dimensional array or Object
134
  *
135
+ * @param object|array|string|null $data - Data to change.
 
 
136
  *
137
  * @since 5.2.0
138
  *
199
  return false;
200
  }
201
 
202
+ if ( false !== strpos( $mysql_value, $this->old ) ) {
203
  return true;
204
  }
205
 
206
  foreach ( Repo::instance()->get_updaters() as $_updater ) {
207
+ if ( false !== strpos( $mysql_value, $_updater::apply_rule_to_url( $this->old ) ) ) {
208
  return true;
209
  }
210
  }
src/Traits/Singleton.php CHANGED
@@ -38,7 +38,7 @@ trait Singleton {
38
  */
39
  public static function instance() {
40
  if ( ! is_a( static::$instance, __CLASS__ ) ) {
41
- static::$instance = new static();
42
  }
43
  return static::$instance;
44
  }
38
  */
39
  public static function instance() {
40
  if ( ! is_a( static::$instance, __CLASS__ ) ) {
41
+ static::$instance = new static(); // @phpstan-ignore-line
42
  }
43
  return static::$instance;
44
  }
src/Updaters/Repo.php CHANGED
@@ -17,7 +17,7 @@ class Repo {
17
  * Get all registered updaters by classname
18
  * This list will grow over time as things are converted over
19
  *
20
- * @return Updaters_Abstract[]
21
  */
22
  public function get_updaters() {
23
  $updaters = apply_filters( 'go-live-update-urls/updaters/repo/updaters', [
17
  * Get all registered updaters by classname
18
  * This list will grow over time as things are converted over
19
  *
20
+ * @return array<Updaters_Abstract::class>
21
  */
22
  public function get_updaters() {
23
  $updaters = apply_filters( 'go-live-update-urls/updaters/repo/updaters', [
src/Updaters/Updaters_Abstract.php CHANGED
@@ -119,6 +119,6 @@ abstract class Updaters_Abstract {
119
  * @return static
120
  */
121
  public static function factory( $table, $column, $old_url, $new_url ) {
122
- return new static( $table, $column, $old_url, $new_url );
123
  }
124
  }
119
  * @return static
120
  */
121
  public static function factory( $table, $column, $old_url, $new_url ) {
122
+ return new static( $table, $column, $old_url, $new_url ); // @phpstan-ignore-line
123
  }
124
  }
src/Updates.php CHANGED
@@ -269,7 +269,7 @@ class Updates {
269
  * @return bool
270
  */
271
  public static function is_subdomain( $old_url, $new_url ) {
272
- return strpos( $new_url, $old_url ) !== false;
273
  }
274
 
275
 
@@ -284,6 +284,6 @@ class Updates {
284
  * @return static
285
  */
286
  public static function factory( $old_url, $new_url, array $tables ) {
287
- return new static( $old_url, $new_url, $tables );
288
  }
289
  }
269
  * @return bool
270
  */
271
  public static function is_subdomain( $old_url, $new_url ) {
272
+ return false !== strpos( $new_url, $old_url );
273
  }
274
 
275
 
284
  * @return static
285
  */
286
  public static function factory( $old_url, $new_url, array $tables ) {
287
+ return new static( $old_url, $new_url, $tables ); // @phpstan-ignore-line
288
  }
289
  }