Velvet Blues Update URLs - Version 3.2.5

Version Description

  • This plugin is not maintained and updated by justingreerbbi (Justin Greer Interactive, LLC)
  • Updated label ID for better UX when selecting url location options.
  • Added use if is_serialized() to remove PHP NOTICES about offsets during url update process.
  • Confirmed compatibility to with WP 4.6 and updated stable tag.
Download this release

Release Info

Developer justingreerbbi
Plugin Icon wp plugin Velvet Blues Update URLs
Version 3.2.5
Comparing to
See all releases

Code changes from version 3.2.4 to 3.2.5

Files changed (2) hide show
  1. readme.txt +12 -31
  2. velvet-blues-update-urls.php +26 -45
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Velvet Blues Update URLs ===
2
- Contributors: VelvetBlues.com
3
- Donate link: http://www.velvetblues.com/go/updateurlsdonate/
4
  Tags: permalinks, urls, links, update links, move wordpress, location, update urls, update permalinks, move, link, url, permalink, excerpt, content links, excerpt links, custom field links, meta, post meta
5
- Requires at least: 2.5
6
- Tested up to: 4.3
7
- Stable tag: 3.2.4
8
  License: GPLv2 or later
9
 
10
  Updates all urls and content links in your website.
@@ -18,9 +18,6 @@ If you move your WordPress website to a new domain name, you will find that inte
18
  * Users can choose whether to update links for attachments
19
  * View how many items were updated
20
 
21
- Get support for this plugin by going to the [Velvet Blues Update URLs plugin page](http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/). Post all questions as comments.
22
-
23
-
24
  == Installation ==
25
 
26
  Installation and uninstallation are extremely simple. You can use WordPress' automatic install or follow the manual instructions below.
@@ -41,32 +38,15 @@ Installation and uninstallation are extremely simple. You can use WordPress' aut
41
 
42
  Using this plugin is very simple. Once it has been activated, navigate to Tools -> Update URLs and follow the instructions.
43
 
44
-
45
- Get support for this plugin by going to the [Velvet Blues Update URLs plugin page](http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/). Post all questions as comments.
46
-
47
-
48
  == Frequently Asked Questions ==
49
 
50
- = Where can I get support for the plugin? =
51
-
52
- Get support for this plugin by going to the [Velvet Blues Update URLs plugin page](http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/). Post all questions as comments.
53
-
54
  = Why are my urls not updated? =
55
 
56
- URLs are only replaced when an exact match is found. Be sure that you have entered the correct url and hit submit. (Note: Matching is case-sensitive.)
57
 
58
  = Why do I see the message "You do not have sufficient permissions to access this page"? =
59
 
60
- Make sure that the plugin is activated and that you are an administrator level user.
61
-
62
- = This plugin saved me a lot of work. Where can I donate? =
63
-
64
- Thanks, donations help us to continue improving our plugins. [Donate Here via PayPal.](http://www.velvetblues.com/go/updateurlsdonate/)
65
-
66
- = I'm afraid to screw this up. Will you do it for me? =
67
-
68
- Of course! Velvet Blues will backup your website and replace your URLs for only $29. If you need your website moved, we charge a flat fee of $65 and will finish your move within 48 hours - week days only. For same-day or weekend jobs, we charge a flat rate of $105. Contact us at info@velvetblues.com for more information.
69
-
70
 
71
  == Screenshots ==
72
 
@@ -74,10 +54,11 @@ Get support for this plugin by going to the [Velvet Blues Update URLs plugin pag
74
 
75
  == Change Log ==
76
 
77
- = 3.2.4 =
78
- * Confirmed compatibility with WordPress 4.3.x releases.
79
- * Updated readme file.
80
- * Wrapped plugin functions in conditional statement to avoid issues with 3rd Party themes that include our functionality.
 
81
 
82
  = 3.2.3 =
83
  * Confirmed compatibility with WordPress 4.0.x releases.
1
  === Velvet Blues Update URLs ===
2
+ Contributors: justingreerbbi
3
+ Donate link: https://justin-greer.com/
4
  Tags: permalinks, urls, links, update links, move wordpress, location, update urls, update permalinks, move, link, url, permalink, excerpt, content links, excerpt links, custom field links, meta, post meta
5
+ Requires at least: 3.8
6
+ Tested up to: 4.6
7
+ Stable tag: 3.2.5
8
  License: GPLv2 or later
9
 
10
  Updates all urls and content links in your website.
18
  * Users can choose whether to update links for attachments
19
  * View how many items were updated
20
 
 
 
 
21
  == Installation ==
22
 
23
  Installation and uninstallation are extremely simple. You can use WordPress' automatic install or follow the manual instructions below.
38
 
39
  Using this plugin is very simple. Once it has been activated, navigate to Tools -> Update URLs and follow the instructions.
40
 
 
 
 
 
41
  == Frequently Asked Questions ==
42
 
 
 
 
 
43
  = Why are my urls not updated? =
44
 
45
+ URLs are only replaced when an exact match is found. Be sure that you have entered the correct url and hit submit. (Note: Matching is case-sensitive.)
46
 
47
  = Why do I see the message "You do not have sufficient permissions to access this page"? =
48
 
49
+ Make sure that the plugin is activated and that you are an administrator level user.
 
 
 
 
 
 
 
 
 
50
 
51
  == Screenshots ==
52
 
54
 
55
  == Change Log ==
56
 
57
+ = 3.2.5 =
58
+ * This plugin is not maintained and updated by justingreerbbi (Justin Greer Interactive, LLC)
59
+ * Updated label ID for better UX when selecting url location options.
60
+ * Added use if is_serialized() to remove PHP NOTICES about offsets during url update process.
61
+ * Confirmed compatibility to with WP 4.6 and updated stable tag.
62
 
63
  = 3.2.3 =
64
  * Confirmed compatibility with WordPress 4.0.x releases.
velvet-blues-update-urls.php CHANGED
@@ -1,16 +1,21 @@
1
  <?php
2
  /*
3
  Plugin Name: Velvet Blues Update URLs
4
- Plugin URI: http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/
5
  Description: This plugin <strong>updates all urls in your website</strong> by replacing old urls with new urls. To get started: 1) Click the "Activate" link to the left of this description, and 2) Go to your <a href="tools.php?page=velvet-blues-update-urls.php">Update URLs</a> page to use it.
6
- Author: VelvetBlues.com
7
- Author URI: http://www.velvetblues.com/
8
- Author Email: info@velvetblues.com
9
- Version: 3.2.4
10
  License: GPLv2 or later
11
  Text Domain: velvet-blues-update-urls
12
  */
13
- /* Copyright 2015 Velvet Blues Web Design (email : info@velvetblues.com)
 
 
 
 
 
14
 
15
  This program is free software; you can redistribute it and/or
16
  modify it under the terms of the GNU General Public License
@@ -26,13 +31,7 @@ You should have received a copy of the GNU General Public License
26
  along with this program; if not, write to the Free Software
27
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28
  */
29
- if ( !function_exists( 'add_action' ) ) {
30
- ?>
31
- <h3>Oops! This page cannot be accessed directly.</h3>
32
- <p>For support using the Velvet Blues Update URLs plugin, <a href="http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/" title="Velvet Blues Update URLs WordPress plugin">click here</a>.</p>
33
- <p>If you are looking for general WordPress assistance, <a href="http://www.velvetblues.com/" title="WordPress Web Development and Services">Velvet Blues can help with that too</a>.</p>
34
- <?php
35
- exit;
36
  }
37
  function VelvetBluesUU_add_management_page(){
38
  add_management_page("Velvet Blues Update URLs", "Update URLs", "manage_options", basename(__FILE__), "VelvetBluesUU_management_page");
@@ -93,7 +92,8 @@ function VelvetBluesUU_management_page(){
93
  if ( !function_exists( 'VB_unserialize_replace' ) ) {
94
  function VB_unserialize_replace( $from = '', $to = '', $data = '', $serialised = false ) {
95
  try {
96
- if ( is_string( $data ) && ( $unserialized = @unserialize( $data ) ) !== false ) {
 
97
  $data = VB_unserialize_replace( $from, $to, $unserialized, true );
98
  }
99
  elseif ( is_array( $data ) ) {
@@ -188,12 +188,7 @@ function VelvetBluesUU_management_page(){
188
  </u><?php echo $resultstring; ?></p>
189
  <?php echo ($empty)? '<p>'.$emptystring.'</p>' : ''; ?></td>
190
  <td width="60"></td>
191
- <td align="center"><?php if( !$empty ): ?>
192
- <p>
193
- <?php //You can now uninstall this plugin.<br/> ?>
194
- <?php printf(__('If you found our plugin useful, %s please consider donating','velvet-blues-update-urls'),'<br/>'); ?>.</p>
195
- <p><a style="outline:none;" href="http://www.velvetblues.com/go/updateurlsdonate/" target="_blank"><img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" alt="PayPal -<?php _e('The safer, easier way to pay online!','velvet-blues-update-urls'); ?>"></a></p>
196
- <?php endif; ?></td>
197
  </tr>
198
  </table>
199
  </div>
@@ -255,34 +250,34 @@ function VelvetBluesUU_management_page(){
255
  <?php _e('posts, pages, custom post types, revisions','velvet-blues-update-urls'); ?>
256
  )</label>
257
  <br/>
258
- <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="excerpts" />
259
- <label for="VBUU_update_true"><strong>
260
  <?php _e('URLs in excerpts','velvet-blues-update-urls'); ?>
261
  </strong></label>
262
  <br/>
263
- <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="links" />
264
- <label for="VBUU_update_true"><strong>
265
  <?php _e('URLs in links','velvet-blues-update-urls'); ?>
266
  </strong></label>
267
  <br/>
268
- <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="attachments" />
269
- <label for="VBUU_update_true"><strong>
270
  <?php _e('URLs for attachments','velvet-blues-update-urls'); ?>
271
  </strong> (
272
  <?php _e('images, documents, general media','velvet-blues-update-urls'); ?>
273
  )</label>
274
  <br/>
275
- <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="custom" />
276
- <label for="VBUU_update_true"><strong>
277
  <?php _e('URLs in custom fields and meta boxes','velvet-blues-update-urls'); ?>
278
  </strong></label>
279
  <br/>
280
- <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true" value="guids" />
281
- <label for="VBUU_update_true"><strong>
282
  <?php _e('Update ALL GUIDs','velvet-blues-update-urls'); ?>
283
  </strong> <span class="description" style="color:#f00;">
284
  <?php _e('GUIDs for posts should only be changed on development sites.','velvet-blues-update-urls'); ?>
285
- </span> <a href="http://www.velvetblues.com/go/guids/" target="_blank">
286
  <?php _e('Learn More.','velvet-blues-update-urls'); ?>
287
  </a></label>
288
  </p></td>
@@ -292,20 +287,6 @@ function VelvetBluesUU_management_page(){
292
  <input class="button-primary" name="VBUU_settings_submit" value="<?php _e('Update URLs NOW','velvet-blues-update-urls'); ?>" type="submit" />
293
  </p>
294
  </form>
295
- <p>&nbsp;<br/>
296
- <strong>
297
- <?php _e('Need help?','velvet-blues-update-urls'); ?>
298
- </strong> <?php printf(__("Get support at the %s plugin page%s.",'velvet-blues-update-urls'),'<a href="http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/" target="_blank">Velvet Blues Update URLs','</a>'); ?>
299
- <?php if( !isset( $empty ) ): ?>
300
- <br/>
301
- <strong>
302
- <?php _e('Want us to do it for you?','velvet-blues-update-urls'); ?>
303
- </strong>
304
- <?php _e('Contact us at','velvet-blues-update-urls'); ?>
305
- <a href="mailto:info@velvetblues.com?subject=Move%20My%20WP%20Site">info@velvetblues.com</a>.
306
- <?php _e('We will backup your website and move it for $65 OR update your URLs for only $29.','velvet-blues-update-urls'); ?>
307
- <?php endif; ?>
308
- </p>
309
  <?php
310
  }
311
  add_action('admin_menu', 'VelvetBluesUU_add_management_page');
1
  <?php
2
  /*
3
  Plugin Name: Velvet Blues Update URLs
4
+ Plugin URI: https://justin-greer.com
5
  Description: This plugin <strong>updates all urls in your website</strong> by replacing old urls with new urls. To get started: 1) Click the "Activate" link to the left of this description, and 2) Go to your <a href="tools.php?page=velvet-blues-update-urls.php">Update URLs</a> page to use it.
6
+ Author: justingreerbbi
7
+ Author URI: https://justin-greer.com
8
+ Author Email: info@justin-greer.com
9
+ Version: 3.2.5
10
  License: GPLv2 or later
11
  Text Domain: velvet-blues-update-urls
12
  */
13
+
14
+ /*
15
+ Copyright 2016 Justin Greer Interactive, LLC
16
+
17
+ Original Author Copyright! Kudos.
18
+ Copyright 2015 Velvet Blues Web Design
19
 
20
  This program is free software; you can redistribute it and/or
21
  modify it under the terms of the GNU General Public License
31
  along with this program; if not, write to the Free Software
32
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33
  */
34
+ if ( !function_exists( 'add_action' ) ) { exit;
 
 
 
 
 
 
35
  }
36
  function VelvetBluesUU_add_management_page(){
37
  add_management_page("Velvet Blues Update URLs", "Update URLs", "manage_options", basename(__FILE__), "VelvetBluesUU_management_page");
92
  if ( !function_exists( 'VB_unserialize_replace' ) ) {
93
  function VB_unserialize_replace( $from = '', $to = '', $data = '', $serialised = false ) {
94
  try {
95
+ if ( false !== is_serialized( $data ) ) {
96
+ $unserialized = unserialize( $data );
97
  $data = VB_unserialize_replace( $from, $to, $unserialized, true );
98
  }
99
  elseif ( is_array( $data ) ) {
188
  </u><?php echo $resultstring; ?></p>
189
  <?php echo ($empty)? '<p>'.$emptystring.'</p>' : ''; ?></td>
190
  <td width="60"></td>
191
+ <td align="center"></td>
 
 
 
 
 
192
  </tr>
193
  </table>
194
  </div>
250
  <?php _e('posts, pages, custom post types, revisions','velvet-blues-update-urls'); ?>
251
  )</label>
252
  <br/>
253
+ <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true1" value="excerpts" />
254
+ <label for="VBUU_update_true1"><strong>
255
  <?php _e('URLs in excerpts','velvet-blues-update-urls'); ?>
256
  </strong></label>
257
  <br/>
258
+ <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true2" value="links" />
259
+ <label for="VBUU_update_true2"><strong>
260
  <?php _e('URLs in links','velvet-blues-update-urls'); ?>
261
  </strong></label>
262
  <br/>
263
+ <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true3" value="attachments" />
264
+ <label for="VBUU_update_true3"><strong>
265
  <?php _e('URLs for attachments','velvet-blues-update-urls'); ?>
266
  </strong> (
267
  <?php _e('images, documents, general media','velvet-blues-update-urls'); ?>
268
  )</label>
269
  <br/>
270
+ <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true4" value="custom" />
271
+ <label for="VBUU_update_true4"><strong>
272
  <?php _e('URLs in custom fields and meta boxes','velvet-blues-update-urls'); ?>
273
  </strong></label>
274
  <br/>
275
+ <input name="VBUU_update_links[]" type="checkbox" id="VBUU_update_true5" value="guids" />
276
+ <label for="VBUU_update_true5"><strong>
277
  <?php _e('Update ALL GUIDs','velvet-blues-update-urls'); ?>
278
  </strong> <span class="description" style="color:#f00;">
279
  <?php _e('GUIDs for posts should only be changed on development sites.','velvet-blues-update-urls'); ?>
280
+ </span> <a href="http://codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Note" target="_blank">
281
  <?php _e('Learn More.','velvet-blues-update-urls'); ?>
282
  </a></label>
283
  </p></td>
287
  <input class="button-primary" name="VBUU_settings_submit" value="<?php _e('Update URLs NOW','velvet-blues-update-urls'); ?>" type="submit" />
288
  </p>
289
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  <?php
291
  }
292
  add_action('admin_menu', 'VelvetBluesUU_add_management_page');