Go Live Update URLS - Version 2.4.3

Version Description

Download this release

Release Info

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

Code changes from version 2.4.2 to 2.4.3

go-live-update-urls.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://matlipe.com/go-live-update-urls/
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://matlipe.com/
8
- Version: 2.4.2
9
  */
10
 
11
  define( 'GLUU_VIEWS_DIR', plugin_dir_path(__FILE__) . 'views/' );
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://matlipe.com/
8
+ Version: 2.4.3
9
  */
10
 
11
  define( 'GLUU_VIEWS_DIR', plugin_dir_path(__FILE__) . 'views/' );
lib/GoLiveUpdateUrls.php CHANGED
@@ -4,7 +4,7 @@
4
  * @author Mat Lipe
5
  * @since 2.2
6
  *
7
- * @since 10.23.13
8
  *
9
  * @TODO Cleanup the Names and formatting
10
  */
@@ -267,7 +267,7 @@ function makeTheUpdates(){
267
  * @param string $table the table to go through
268
  * @param string $column to column in the table to go through
269
  *
270
- * @since 4.8.13
271
  *
272
  */
273
  function UpdateSeralizedTable( $table, $column = false ){
@@ -290,8 +290,10 @@ function makeTheUpdates(){
290
  if( $this->double_subdomain ){
291
  $clean = $this->replaceTree($clean, $this->double_subdomain, $this->newurl);
292
  }
 
 
293
 
294
- $wpdb->query($wpdb->prepare( "UPDATE $table SET $column=%s WHERE $primary_key_column=%s", @serialize($clean), $row->{$primary_key_column} ) );
295
 
296
  }
297
  }
4
  * @author Mat Lipe
5
  * @since 2.2
6
  *
7
+ * @since 2.26.14
8
  *
9
  * @TODO Cleanup the Names and formatting
10
  */
267
  * @param string $table the table to go through
268
  * @param string $column to column in the table to go through
269
  *
270
+ * @since 2.26.14
271
  *
272
  */
273
  function UpdateSeralizedTable( $table, $column = false ){
290
  if( $this->double_subdomain ){
291
  $clean = $this->replaceTree($clean, $this->double_subdomain, $this->newurl);
292
  }
293
+
294
+ $clean = @serialize($clean);
295
 
296
+ $wpdb->query($wpdb->prepare( "UPDATE $table SET $column=%s WHERE $primary_key_column=%s", $clean, $row->{$primary_key_column} ) );
297
 
298
  }
299
  }
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.8.1
7
- Stable tag: 2.4.2
8
 
9
  == Description ==
10
 
4
  Tags: Go Live, Urls, Domain Changes
5
  Requires at least: 3.1
6
  Tested up to: 3.8.1
7
+ Stable tag: 2.4.3
8
 
9
  == Description ==
10