Go Live Update URLS - Version 1.5

Version Description

  • Added support for automatically keeping email addresses intact when switching to a subdomain like www
Download this release

Release Info

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

Code changes from version 1.3 to 1.5

go-live-functions.php CHANGED
@@ -114,7 +114,12 @@ function gluu_make_the_updates($oldurl, $newurl){
114
  $update_query = "UPDATE ".$v." SET ".$t->COLUMN_NAME." = replace(".$t->COLUMN_NAME.", '".$double_subdomain."','".$newurl."')";
115
  //Run the query
116
  $wpdb->query($update_query);
 
 
 
 
117
  }
 
118
  }
119
  }
120
  }
114
  $update_query = "UPDATE ".$v." SET ".$t->COLUMN_NAME." = replace(".$t->COLUMN_NAME.", '".$double_subdomain."','".$newurl."')";
115
  //Run the query
116
  $wpdb->query($update_query);
117
+
118
+ //Fix the emails breaking by being appended the new subdomain
119
+ $update_query = "UPDATE ".$v." SET ".$t->COLUMN_NAME." = replace(".$t->COLUMN_NAME.", '@".$newurl."','@".$oldurl."')";
120
+ $wpdb->query($update_query);
121
  }
122
+
123
  }
124
  }
125
  }
go-live-update-urls.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://lipeimagination.info/
5
  Description: This Plugin Updates all the URLs in the database to point to the new URL when making your site live or changing domains.
6
  Author: Mat Lipe
7
  Author URI: http://lipeimagination/
8
- Version: 1.3
9
  */
10
  /*
11
  Mat Lipe (mat@lipeimagination.info);
5
  Description: This Plugin Updates all the URLs in the database to point to the new URL when making your site live or changing domains.
6
  Author: Mat Lipe
7
  Author URI: http://lipeimagination/
8
+ Version: 1.5
9
  */
10
  /*
11
  Mat Lipe (mat@lipeimagination.info);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypa
4
  Tags: Go Live, Urls, Domain Changes
5
  Requires at least: 3.1
6
  Tested up to: 3.4.1
7
- Stable tag: 1.3
8
 
9
  == Description ==
10
 
@@ -41,6 +41,9 @@ There are a few plugins out there that use certain values in the wp-options tabl
41
 
42
  == Changelog ==
43
 
 
 
 
44
  = 1.3 =
45
  * Added support for adding subdomains like www
46
 
@@ -55,6 +58,9 @@ There are a few plugins out there that use certain values in the wp-options tabl
55
 
56
  == Upgrade Notice ==
57
 
 
 
 
58
  = 1.3 =
59
  This Version will allow you to switch to www without having to run it twice
60
 
4
  Tags: Go Live, Urls, Domain Changes
5
  Requires at least: 3.1
6
  Tested up to: 3.4.1
7
+ Stable tag: 1.5
8
 
9
  == Description ==
10
 
41
 
42
  == Changelog ==
43
 
44
+ = 1.5 =
45
+ * Added support for automatically keeping email addresses intact when switching to a subdomain like www
46
+
47
  = 1.3 =
48
  * Added support for adding subdomains like www
49
 
58
 
59
  == Upgrade Notice ==
60
 
61
+ = 1.5 -
62
+ This Version will automatically keep email addresses intact when switch to a subdomain like www
63
+
64
  = 1.3 =
65
  This Version will allow you to switch to www without having to run it twice
66
 
screenshot-1.png DELETED
Binary file