Version Description
- Automatically flush Elementor's CSS cache during updates.
- Update screenshots and captions.
- Introduce new
go-live-update-urls-pro/admin/use-default-inputs
filter. - Add CSS classes to form elements on tools page.
- Fix spacing of banners on tools page.
- Improve PHPCS implementation.
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Go Live Update URLS |
Version | 6.2.1 |
Comparing to | |
See all releases |
Code changes from version 6.2.0 to 6.2.1
- go-live-update-urls.php +3 -3
- readme.txt +13 -30
- resources/go-live-update-urls.css +1 -2
- src/Admin.php +45 -41
- src/Database.php +20 -1
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.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.
|
15 |
define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.2.0' );
|
16 |
define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
|
17 |
|
@@ -83,7 +83,7 @@ function go_live_update_urls_pro_plugin_notice() {
|
|
83 |
<div id="message" class="error">
|
84 |
<p>
|
85 |
<?php
|
86 |
-
/* translators: {%1$s}[<a
|
87 |
printf( esc_html_x( 'Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.', '{<a>}{</a>}', 'go-live-update-urls' ), '<a target="_blank" href="https://onpointplugins.com/product/go-live-update-urls-pro/">', '</a>', esc_attr( GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION ) );
|
88 |
?>
|
89 |
</p>
|
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.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.2.1' );
|
15 |
define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.2.0' );
|
16 |
define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
|
17 |
|
83 |
<div id="message" class="error">
|
84 |
<p>
|
85 |
<?php
|
86 |
+
/* translators: Link to plugin {%1$s}[<a href="https://onpointplugins.com/product/go-live-update-urls-pro/">]{%2$s}[</a>] */
|
87 |
printf( esc_html_x( 'Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.', '{<a>}{</a>}', 'go-live-update-urls' ), '<a target="_blank" href="https://onpointplugins.com/product/go-live-update-urls-pro/">', '</a>', esc_attr( GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION ) );
|
88 |
?>
|
89 |
</p>
|
readme.txt
CHANGED
@@ -3,13 +3,13 @@ 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¤cy_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.
|
7 |
Requires PHP: 5.6.0
|
8 |
-
Stable tag: 6.2.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
Goes through entire site and replaces all instances of an old
|
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, real time reporting, priority support, and so much more!</strong>
|
15 |
|
@@ -17,6 +17,7 @@ Goes through entire site and replaces all instances of an old url with a new one
|
|
17 |
|
18 |
|
19 |
<h3>Features</h3>
|
|
|
20 |
* Database table by table selection.
|
21 |
* Updates serialized data in core tables.
|
22 |
* Very easy to use admin page - which may be found under Tools.
|
@@ -101,6 +102,14 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
|
|
101 |
3. Update prevented due to incomplete data entered.
|
102 |
|
103 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
= 6.2.0 =
|
105 |
* Redesign tools page for a modern block look.
|
106 |
* Improve various verbiage.
|
@@ -129,7 +138,7 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
|
|
129 |
* Support URL counting for upcoming <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">PRO</a> enhancements.
|
130 |
* Tested to WordPress version 5.5.0
|
131 |
|
132 |
-
= 6.0.1
|
133 |
* Improve compatibility with very old versions of PRO.
|
134 |
* Improve the readme.
|
135 |
* Add links for the documentation and troubleshooting.
|
@@ -171,29 +180,6 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
|
|
171 |
* UI improvements
|
172 |
* Use strict WP coding standards
|
173 |
|
174 |
-
= 4.1.0 =
|
175 |
-
* Drop PHP 5.2 support in favor of PHP 5.3
|
176 |
-
* Support updating JSON urls
|
177 |
-
* Support Revolution Sliders
|
178 |
-
* Add custom updaters support
|
179 |
-
|
180 |
-
= 4.0.0 =
|
181 |
-
* Restructure admin page to separate WP Core from custom tables
|
182 |
-
* Remove custom styles in admin
|
183 |
-
* Improved js structure
|
184 |
-
* Improved actions and filters
|
185 |
-
* Improved verbiage with admin
|
186 |
-
|
187 |
-
= 3.1 =
|
188 |
-
* Add support for serialized term meta
|
189 |
-
|
190 |
-
= 3.0 =
|
191 |
-
* Greatly improve security
|
192 |
-
* Improve code organization
|
193 |
-
* Remove misleading UI messages
|
194 |
-
* Clears cache when finished
|
195 |
-
|
196 |
-
|
197 |
== Upgrade Notice ==
|
198 |
= 6.1.2 =
|
199 |
Update to support PRO version 6.1.0.
|
@@ -210,6 +196,3 @@ Fixes bug with the database not updating properly
|
|
210 |
= 5.0.1 =
|
211 |
For full functionality of PRO version 2.2.0
|
212 |
|
213 |
-
= 3.1 =
|
214 |
-
Upgrade to support WP 4.4's term meta.
|
215 |
-
|
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¤cy_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.3
|
7 |
Requires PHP: 5.6.0
|
8 |
+
Stable tag: 6.2.1
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
+
Goes through entire site and replaces all instances of an old URL with a new one. Used most often when changing the domain of your site.
|
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, real time reporting, priority support, and so much more!</strong>
|
15 |
|
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.
|
102 |
3. Update prevented due to incomplete data entered.
|
103 |
|
104 |
== Changelog ==
|
105 |
+
= 6.2.1 =
|
106 |
+
* Automatically flush Elementor's CSS cache during updates.
|
107 |
+
* Update screenshots and captions.
|
108 |
+
* Introduce new `go-live-update-urls-pro/admin/use-default-inputs` filter.
|
109 |
+
* Add CSS classes to form elements on tools page.
|
110 |
+
* Fix spacing of banners on tools page.
|
111 |
+
* Improve PHPCS implementation.
|
112 |
+
|
113 |
= 6.2.0 =
|
114 |
* Redesign tools page for a modern block look.
|
115 |
* Improve various verbiage.
|
138 |
* Support URL counting for upcoming <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">PRO</a> enhancements.
|
139 |
* Tested to WordPress version 5.5.0
|
140 |
|
141 |
+
= 6.0.1 =
|
142 |
* Improve compatibility with very old versions of PRO.
|
143 |
* Improve the readme.
|
144 |
* Add links for the documentation and troubleshooting.
|
180 |
* UI improvements
|
181 |
* Use strict WP coding standards
|
182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
== Upgrade Notice ==
|
184 |
= 6.1.2 =
|
185 |
Update to support PRO version 6.1.0.
|
196 |
= 5.0.1 =
|
197 |
For full functionality of PRO version 2.2.0
|
198 |
|
|
|
|
|
|
resources/go-live-update-urls.css
CHANGED
@@ -6,8 +6,7 @@
|
|
6 |
.notice,
|
7 |
div.updated,
|
8 |
div.error {
|
9 |
-
margin
|
10 |
-
margin-left: 15px;
|
11 |
}
|
12 |
|
13 |
.update-nag {
|
6 |
.notice,
|
7 |
div.updated,
|
8 |
div.error {
|
9 |
+
margin: 15px 15px 25px 15px;
|
|
|
10 |
}
|
11 |
|
12 |
.update-nag {
|
src/Admin.php
CHANGED
@@ -167,7 +167,8 @@ class Admin {
|
|
167 |
data-list="wp-core"
|
168 |
data-js="go-live-update-urls/checkboxes/check-all"
|
169 |
checked
|
170 |
-
/>
|
|
|
171 |
</p>
|
172 |
<hr />
|
173 |
|
@@ -211,52 +212,55 @@ class Admin {
|
|
211 |
|
212 |
do_action( 'go-live-update-urls-pro/admin/after-checkboxes', Database::instance() );
|
213 |
|
214 |
-
|
215 |
-
|
216 |
-
<
|
217 |
-
<
|
218 |
-
<
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
<
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
<
|
234 |
-
<
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
<
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
|
|
249 |
|
250 |
-
|
|
|
|
|
251 |
if ( apply_filters( 'go-live-update-urls-pro/admin/use-default-checkboxes', true ) ) {
|
252 |
?>
|
253 |
<p class="description">
|
254 |
<strong>
|
255 |
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
|
261 |
</strong>
|
262 |
</p>
|
167 |
data-list="wp-core"
|
168 |
data-js="go-live-update-urls/checkboxes/check-all"
|
169 |
checked
|
170 |
+
/>
|
171 |
+
<span class="go-live-only-checked"><?php esc_html_e( 'Only the checked tables will be updated.', 'go-live-update-urls' ); ?></span>
|
172 |
</p>
|
173 |
<hr />
|
174 |
|
212 |
|
213 |
do_action( 'go-live-update-urls-pro/admin/after-checkboxes', Database::instance() );
|
214 |
|
215 |
+
if ( apply_filters( 'go-live-update-urls-pro/admin/use-default-inputs', true ) ) {
|
216 |
+
?>
|
217 |
+
<table class="form-table go-live-inputs">
|
218 |
+
<tr class="go-live-inputs-old-url">
|
219 |
+
<th scope="row">
|
220 |
+
<label for="old_url">
|
221 |
+
<?php esc_html_e( 'Old URL', 'go-live-update-urls' ); ?>
|
222 |
+
</label>
|
223 |
+
</th>
|
224 |
+
<td>
|
225 |
+
<input
|
226 |
+
name="<?php echo esc_attr( self::OLD_URL ); ?>"
|
227 |
+
type="text"
|
228 |
+
id="old_url"
|
229 |
+
value=""
|
230 |
+
class="regular-text"
|
231 |
+
title="<?php esc_attr_e( 'Old URL', 'go-live-update-urls' ); ?>" />
|
232 |
+
</td>
|
233 |
+
</tr>
|
234 |
+
<tr class="go-live-inputs-new-url">
|
235 |
+
<th scope="row">
|
236 |
+
<label for="new_url">
|
237 |
+
<?php esc_attr_e( 'New URL', 'go-live-update-urls' ); ?>
|
238 |
+
</label>
|
239 |
+
</th>
|
240 |
+
<td>
|
241 |
+
<input
|
242 |
+
name="<?php echo esc_attr( self::NEW_URL ); ?>"
|
243 |
+
type="text"
|
244 |
+
id="new_url"
|
245 |
+
value=""
|
246 |
+
class="regular-text"
|
247 |
+
title="<?php esc_attr_e( 'New URL', 'go-live-update-urls' ); ?>" />
|
248 |
+
</td>
|
249 |
+
</tr>
|
250 |
+
</table>
|
251 |
|
252 |
+
|
253 |
+
<?php
|
254 |
+
}
|
255 |
if ( apply_filters( 'go-live-update-urls-pro/admin/use-default-checkboxes', true ) ) {
|
256 |
?>
|
257 |
<p class="description">
|
258 |
<strong>
|
259 |
|
260 |
+
<?php
|
261 |
+
/* translators: <a></a> */
|
262 |
+
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>' );
|
263 |
+
?>
|
264 |
|
265 |
</strong>
|
266 |
</p>
|
src/Database.php
CHANGED
@@ -177,7 +177,7 @@ class Database {
|
|
177 |
$counts[ $_table ] += $updates->update_table_columns( $_table );
|
178 |
}
|
179 |
|
180 |
-
|
181 |
|
182 |
do_action( 'go-live-update-urls/database/after-update', $old_url, $new_url, $tables, $this );
|
183 |
|
@@ -256,4 +256,23 @@ class Database {
|
|
256 |
|
257 |
return (int) $wpdb->get_var( $wpdb->prepare( $update_query, [ $old_url, $old_url ] ) );
|
258 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
}
|
177 |
$counts[ $_table ] += $updates->update_table_columns( $_table );
|
178 |
}
|
179 |
|
180 |
+
$this->flush_caches();
|
181 |
|
182 |
do_action( 'go-live-update-urls/database/after-update', $old_url, $new_url, $tables, $this );
|
183 |
|
256 |
|
257 |
return (int) $wpdb->get_var( $wpdb->prepare( $update_query, [ $old_url, $old_url ] ) );
|
258 |
}
|
259 |
+
|
260 |
+
|
261 |
+
/**
|
262 |
+
* Flush any known caches which are affected by updating the database.
|
263 |
+
*
|
264 |
+
* 1. WP core object cache.
|
265 |
+
* 2. Elementor CSS cache.
|
266 |
+
*
|
267 |
+
* @ticket #7751
|
268 |
+
*
|
269 |
+
* @see \Elementor\Settings::update_css_print_method
|
270 |
+
*
|
271 |
+
* @since 6.2.1
|
272 |
+
*/
|
273 |
+
protected function flush_caches() {
|
274 |
+
wp_cache_flush();
|
275 |
+
// Special flush CSS cache for Elementor #7751.
|
276 |
+
do_action( 'update_option_elementor_css_print_method' );
|
277 |
+
}
|
278 |
}
|