Go Live Update URLS - Version 6.3.9

Version Description

  • Tested to WordPress 6.0.1.
  • Mentioned updating encoded URL in readme.
Download this release

Release Info

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

Code changes from version 6.3.8 to 6.3.9

go-live-update-urls.php CHANGED
@@ -2,20 +2,21 @@
2
  /**
3
  * Plugin Name: Go Live Update Urls
4
  * Plugin URI: https://onpointplugins.com/go-live-update-urls/
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.7
9
  * Text Domain: go-live-update-urls
10
  * Domain Path: /languages/
11
  * Network: false
 
12
  * Requires at least: 5.4.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.8' );
19
  define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.6.0' );
20
  define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
21
 
2
  /**
3
  * Plugin Name: Go Live Update Urls
4
  * Plugin URI: https://onpointplugins.com/go-live-update-urls/
5
+ * Description: Updates every URL on your site when going live or changing domains.
6
  * Author: OnPoint Plugins
7
  * Author URI: https://onpointplugins.com
8
+ * Version: 6.3.9
9
  * Text Domain: go-live-update-urls
10
  * Domain Path: /languages/
11
  * Network: false
12
+ *
13
  * Requires at least: 5.4.0
14
  * Requires PHP: 5.6.0
15
  *
16
  * @package go-live-update-urls
17
  */
18
 
19
+ define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.3.9' );
20
  define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.6.0' );
21
  define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
22
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: urls, launching, site changes, tools, domain, domains, domain changes, url
5
  Requires at least: 5.4.0
6
  Tested up to: 6.0.1
7
  Requires PHP: 5.6.0
8
- Stable tag: 6.3.8
9
 
10
  == Description ==
11
 
@@ -17,10 +17,10 @@ Goes through entire site and replaces all instances of an old URL with a new one
17
 
18
 
19
  <h3>Features</h3>
20
- * Works on both multi-site and single site installs.
21
  * Database table by table selection.
22
  * Updates serialized data in core tables.
23
- * Very easy to use admin page - which may be found under Tools.
 
24
 
25
 
26
  <h3>Updates Entire Site including</h3>
@@ -39,6 +39,7 @@ Goes through entire site and replaces all instances of an old URL with a new one
39
  * Database tables are organized into simple intuitive sections.
40
  * Ability to choose between a full table or sections.
41
  * Updates serialized data across any table.
 
42
  * Updates JSON data across any table.
43
  * Ability to test URL changes before running them.
44
  * URL testing report is provided for peace of mind.
@@ -99,6 +100,10 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
99
  3. Update prevented due to incomplete data entered.
100
 
101
  == Changelog ==
 
 
 
 
102
  = 6.3.8 =
103
  * Improved translations.
104
  * Fix typo in the readme.
5
  Requires at least: 5.4.0
6
  Tested up to: 6.0.1
7
  Requires PHP: 5.6.0
8
+ Stable tag: 6.3.9
9
 
10
  == Description ==
11
 
17
 
18
 
19
  <h3>Features</h3>
 
20
  * Database table by table selection.
21
  * Updates serialized data in core tables.
22
+ * Easy to use admin page - which may be found under Tools.
23
+ * Works on both multisite and single site installs.
24
 
25
 
26
  <h3>Updates Entire Site including</h3>
39
  * Database tables are organized into simple intuitive sections.
40
  * Ability to choose between a full table or sections.
41
  * Updates serialized data across any table.
42
+ * Updates encoded URL across any table.
43
  * Updates JSON data across any table.
44
  * Ability to test URL changes before running them.
45
  * URL testing report is provided for peace of mind.
100
  3. Update prevented due to incomplete data entered.
101
 
102
  == Changelog ==
103
+ = 6.3.9 =
104
+ * Tested to WordPress 6.0.1.
105
+ * Mentioned updating encoded URL in readme.
106
+
107
  = 6.3.8 =
108
  * Improved translations.
109
  * Fix typo in the readme.
src/Serialized.php CHANGED
@@ -130,7 +130,7 @@ class Serialized {
130
 
131
 
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
  *
130
 
131
 
132
  /**
133
+ * Replaces all the occurrences of a string in a multidimensional array or Object
134
  *
135
  * @param object|array|string|null $data - Data to change.
136
  *
src/Traits/Singleton.php CHANGED
@@ -5,11 +5,12 @@ namespace Go_Live_Update_Urls\Traits;
5
  trait Singleton {
6
 
7
  /**
8
- * Actions and filters which are called during `init`.
9
  */
10
  protected function hook() {
11
  }
12
 
 
13
  /**
14
  * Instance of this class for use as singleton
15
  *
5
  trait Singleton {
6
 
7
  /**
8
+ * Actions and filters, which are called during `init`.
9
  */
10
  protected function hook() {
11
  }
12
 
13
+
14
  /**
15
  * Instance of this class for use as singleton
16
  *
src/Updaters/Repo.php CHANGED
@@ -16,7 +16,7 @@ class Repo {
16
  /**
17
  * Get all registered updaters by classname.
18
  *
19
- * @return string[]
20
  */
21
  public function get_updaters() {
22
  $updaters = apply_filters( 'go-live-update-urls/updaters/repo/updaters', [
16
  /**
17
  * Get all registered updaters by classname.
18
  *
19
+ * @return array<string, class-string<Updaters_Abstract>>
20
  */
21
  public function get_updaters() {
22
  $updaters = apply_filters( 'go-live-update-urls/updaters/repo/updaters', [
src/Updaters/Updaters_Abstract.php CHANGED
@@ -48,7 +48,7 @@ abstract class Updaters_Abstract {
48
  * @param string $old_url Old URL.
49
  * @param string $new_url New URL.
50
  */
51
- public function __construct( $table, $column, $old_url, $new_url ) {
52
  $this->table = $table;
53
  $this->column = $column;
54
  $this->old = $old_url;
@@ -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 ); // @phpstan-ignore-line
123
  }
124
  }
48
  * @param string $old_url Old URL.
49
  * @param string $new_url New URL.
50
  */
51
+ final public function __construct( $table, $column, $old_url, $new_url ) {
52
  $this->table = $table;
53
  $this->column = $column;
54
  $this->old = $old_url;
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
  }
src/Updates.php CHANGED
@@ -8,10 +8,10 @@ use Go_Live_Update_Urls\Updaters\Repo;
8
  * Translated provided URLS into various steps to update the database.
9
  *
10
  * While no updates to the database are done within this class,
11
- * all calls to the methods which update the database go through here
12
  * except for serialized data.
13
  *
14
- * This class determines which data needs to be updated in which way
15
  * and makes necessary calls.
16
  *
17
  * @since 6.1.0
@@ -46,7 +46,7 @@ class Updates {
46
  * @param string $new - Entered new URL.
47
  * @param string[] $tables - List of tables to interact with.
48
  */
49
- public function __construct( $old, $new, array $tables ) {
50
  $this->old_url = $old;
51
  $this->new_url = $new;
52
  $this->tables = $tables;
@@ -66,7 +66,7 @@ class Updates {
66
  $doubled = $this->get_doubled_up_subdomain();
67
  $columns = $this->get_table_columns( $table );
68
  $count = 0;
69
- array_walk( $columns, function ( $column ) use ( $table, $doubled, &$count ) {
70
  $count += (int) Database::instance()->update_column( $table, $column, $this->old_url, $this->new_url );
71
  $count += (int) $this->update_column_with_updaters( $table, $column );
72
  $this->update_email_addresses( $table, $column );
@@ -91,7 +91,7 @@ class Updates {
91
  $doubled = $this->get_doubled_up_subdomain();
92
  $columns = $this->get_table_columns( $table );
93
  $count = 0;
94
- array_walk( $columns, function ( $column ) use ( $table, $doubled, &$count ) {
95
  $count += (int) Database::instance()->count_column_urls( $table, $column, $this->old_url );
96
  $count += (int) $this->count_column_urls_with_updaters( $table, $column );
97
 
@@ -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 ); // @phpstan-ignore-line
288
  }
289
  }
8
  * Translated provided URLS into various steps to update the database.
9
  *
10
  * While no updates to the database are done within this class,
11
+ * all calls to the methods, which update the database go through here
12
  * except for serialized data.
13
  *
14
+ * This class determines, which data needs to be updated in which way
15
  * and makes necessary calls.
16
  *
17
  * @since 6.1.0
46
  * @param string $new - Entered new URL.
47
  * @param string[] $tables - List of tables to interact with.
48
  */
49
+ final public function __construct( $old, $new, array $tables ) {
50
  $this->old_url = $old;
51
  $this->new_url = $new;
52
  $this->tables = $tables;
66
  $doubled = $this->get_doubled_up_subdomain();
67
  $columns = $this->get_table_columns( $table );
68
  $count = 0;
69
+ \array_walk( $columns, function( $column ) use ( $table, $doubled, &$count ) {
70
  $count += (int) Database::instance()->update_column( $table, $column, $this->old_url, $this->new_url );
71
  $count += (int) $this->update_column_with_updaters( $table, $column );
72
  $this->update_email_addresses( $table, $column );
91
  $doubled = $this->get_doubled_up_subdomain();
92
  $columns = $this->get_table_columns( $table );
93
  $count = 0;
94
+ \array_walk( $columns, function( $column ) use ( $table, $doubled, &$count ) {
95
  $count += (int) Database::instance()->count_column_urls( $table, $column, $this->old_url );
96
  $count += (int) $this->count_column_urls_with_updaters( $table, $column );
97
 
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
  }