Go Live Update URLS - Version 6.3.6

Version Description

  • Improved internal URL utm structure.
  • Tested to WordPress 5.9.0.
Download this release

Release Info

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

Code changes from version 6.3.5 to 6.3.6

Files changed (4) hide show
  1. go-live-update-urls.php +2 -2
  2. readme.txt +5 -1
  3. src/Admin.php +2 -2
  4. src/Core.php +19 -6
go-live-update-urls.php CHANGED
@@ -5,7 +5,7 @@
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.5
9
  * Text Domain: go-live-update-urls
10
  * Domain Path: /languages/
11
  * Network: false
@@ -15,7 +15,7 @@
15
  * @package go-live-update-urls
16
  */
17
 
18
- define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.3.5' );
19
  define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.4.0' );
20
  define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
21
 
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.6
9
  * Text Domain: go-live-update-urls
10
  * Domain Path: /languages/
11
  * Network: false
15
  * @package go-live-update-urls
16
  */
17
 
18
+ define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.3.6' );
19
  define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.4.0' );
20
  define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
21
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: urls, launching, site changes, tools, domain, domains, domain changes, url
5
  Requires at least: 5.2.0
6
  Tested up to: 5.9.0
7
  Requires PHP: 5.6.0
8
- Stable tag: 6.3.5
9
 
10
  == Description ==
11
 
@@ -102,6 +102,10 @@ 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.3.5 =
106
  * Tested to WordPress 5.8.3.
107
  * Fix issue with tables showing from other sites on multisite.
5
  Requires at least: 5.2.0
6
  Tested up to: 5.9.0
7
  Requires PHP: 5.6.0
8
+ Stable tag: 6.3.6
9
 
10
  == Description ==
11
 
102
  3. Update prevented due to incomplete data entered.
103
 
104
  == Changelog ==
105
+ = 6.3.6 =
106
+ * Improved internal URL utm structure.
107
+ * Tested to WordPress 5.9.0.
108
+
109
  = 6.3.5 =
110
  * Tested to WordPress 5.8.3.
111
  * Fix issue with tables showing from other sites on multisite.
src/Admin.php CHANGED
@@ -192,7 +192,7 @@ class Admin {
192
  <strong>
193
  <?php
194
  /* translators: <br /> <a> </a> */
195
- printf( esc_html_x( 'These tables are not safe to update with the basic version of this plugin! %1$sTo update tables created by plugins, use the %2$sPRO version%3$s.', '{<br />}{<a>}{</a>}', 'go-live-update-urls' ), '<br />', '<a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">', '</a>' );
196
  ?>
197
  </strong>
198
  </p>
@@ -262,7 +262,7 @@ class Admin {
262
 
263
  <?php
264
  /* translators: <a></a> */
265
- printf( esc_html_x( 'Use the %1$sPRO version%2$s to test URL updates before making them.', '{<a>}{</a>}', 'go-live-update-urls' ), '<a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">', '</a>' );
266
  ?>
267
 
268
  </strong>
192
  <strong>
193
  <?php
194
  /* translators: <br /> <a> </a> */
195
+ printf( esc_html_x( 'These tables are not safe to update with the basic version of this plugin! %1$sTo update tables created by plugins, use the %2$sPRO version%3$s.', '{<br />}{<a>}{</a>}', 'go-live-update-urls' ), '<br />', '<a href="https://onpointplugins.com/product/go-live-update-urls-pro/?utm_source=plugin-tables&utm_campaign=gopro&utm_medium=wp-dash" target="_blank">', '</a>' );
196
  ?>
197
  </strong>
198
  </p>
262
 
263
  <?php
264
  /* translators: <a></a> */
265
+ printf( esc_html_x( 'Use the %1$sPRO version%2$s to test URL updates before making them.', '{<a>}{</a>}', 'go-live-update-urls' ), '<a href="https://onpointplugins.com/product/go-live-update-urls-pro/?utm_source=url-test&utm_campaign=gopro&utm_medium=wp-dash" target="_blank">', '</a>' );
266
  ?>
267
 
268
  </strong>
src/Core.php CHANGED
@@ -5,7 +5,7 @@ namespace Go_Live_Update_Urls;
5
  use Go_Live_Update_Urls\Traits\Singleton;
6
 
7
  /**
8
- * Core functionality for the plugin.
9
  *
10
  * @author OnPoint Plugins
11
  * @since 6.0.0
@@ -14,6 +14,7 @@ class Core {
14
  use Singleton;
15
 
16
  const MEMORY_LIMIT = '256M';
 
17
 
18
 
19
  /**
@@ -22,11 +23,8 @@ class Core {
22
  protected function hook() {
23
  add_action( 'go-live-update-urls/database/before-update', [ $this, 'raise_resource_limits' ], 0, 0 );
24
  add_action( 'go-live-update-urls/database/after-update', [ $this, 'flush_caches' ] );
25
- add_filter( 'go-live-update-urls/database/memory-limit_memory_limit', [
26
- $this,
27
- 'raise_memory_limit',
28
- ], 0, 0 );
29
-
30
  }
31
 
32
 
@@ -120,4 +118,19 @@ class Core {
120
 
121
  return $db->update_the_database( $old_url, $new_url, $tables );
122
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  }
5
  use Go_Live_Update_Urls\Traits\Singleton;
6
 
7
  /**
8
+ * Core functionality for the Go Live Update Urls plugin.
9
  *
10
  * @author OnPoint Plugins
11
  * @since 6.0.0
14
  use Singleton;
15
 
16
  const MEMORY_LIMIT = '256M';
17
+ const PLUGIN_FILE = 'go-live-update-urls/go-live-update-urls.php';
18
 
19
 
20
  /**
23
  protected function hook() {
24
  add_action( 'go-live-update-urls/database/before-update', [ $this, 'raise_resource_limits' ], 0, 0 );
25
  add_action( 'go-live-update-urls/database/after-update', [ $this, 'flush_caches' ] );
26
+ add_filter( 'go-live-update-urls/database/memory-limit_memory_limit', [ $this, 'raise_memory_limit' ], 0, 0 );
27
+ add_filter( 'plugin_action_links_' . self::PLUGIN_FILE, [ $this, 'plugin_action_link' ] );
 
 
 
28
  }
29
 
30
 
118
 
119
  return $db->update_the_database( $old_url, $new_url, $tables );
120
  }
121
+
122
+
123
+ /**
124
+ * Display a "Go PRO" action link in plugins list.
125
+ *
126
+ * @param array $actions - Array of actions and their link.
127
+ *
128
+ * @return array
129
+ */
130
+ public function plugin_action_link( array $actions ) {
131
+ if ( ! \defined( 'GO_LIVE_UPDATE_URLS_PRO_VERSION' ) ) {
132
+ $actions['go-pro'] = sprintf( '<a href="%1$s" target="_blank" style="color:#3db634;font-weight:700;">%2$s</a>', 'https://onpointplugins.com/product/go-live-update-urls-pro/?utm_source=wp-plugins&utm_campaign=gopro&utm_medium=wp-dash', __( 'Go PRO', 'go-live-update-urls' ) );
133
+ }
134
+ return $actions;
135
+ }
136
  }