Go Live Update URLS - Version 2.3.0

Version Description

Download this release

Release Info

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

Code changes from version 2.2.2 to 2.3.0

go-live-update-urls.php CHANGED
@@ -4,8 +4,8 @@ Plugin Name: Go Live Update URLS
4
  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: 2.2.2
9
  */
10
 
11
  define( 'GLUU_VIEWS_DIR', plugin_dir_path(__FILE__) . 'views/' );
4
  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://matlipe.com/
8
+ Version: 2.3.0
9
  */
10
 
11
  define( 'GLUU_VIEWS_DIR', plugin_dir_path(__FILE__) . 'views/' );
lib/GoLiveUpdateUrls.php CHANGED
@@ -4,8 +4,7 @@
4
  * @author Mat Lipe
5
  * @since 2.2
6
  *
7
- *
8
- * @updated 4.8.13
9
  *
10
  * @TODO Cleanup the Names and formatting
11
  */
@@ -15,11 +14,14 @@ class GoLiveUpdateUrls{
15
  var $double_subdomain = false; //keep track if going to a subdomain
16
 
17
  //Keys are table names, values are table columns
 
18
  public $seralized_tables = array();
19
 
20
 
21
  /**
22
  * @since 2.2
 
 
23
  */
24
  function __construct(){
25
  global $wpdb;
@@ -30,11 +32,12 @@ class GoLiveUpdateUrls{
30
  //Add the CSS
31
  add_action( 'admin_head', array( $this,'css') );
32
 
33
- //default tables with seralized issues
34
  $this->seralized_tables = array(
35
- $pf.'options' => 'option_value', //wordpres options
36
- $pf.'rg_form_meta' => 'display_meta' //gravity forms
37
- );
 
38
 
39
  }
40
 
@@ -145,11 +148,17 @@ class GoLiveUpdateUrls{
145
  * Updates the datbase
146
  *
147
  * @uses the oldurl and newurl set above
148
- * @since 4.8.13
149
  *
150
  * @filters apply_filters( 'gluu-seralized-tables', $this->seralized_tables ); - effects makeCheckBoxes as well
151
  */
152
  function makeTheUpdates(){
 
 
 
 
 
 
153
  global $wpdb;
154
 
155
  $oldurl = $this->oldurl;
4
  * @author Mat Lipe
5
  * @since 2.2
6
  *
7
+ * @since 9.22.13
 
8
  *
9
  * @TODO Cleanup the Names and formatting
10
  */
14
  var $double_subdomain = false; //keep track if going to a subdomain
15
 
16
  //Keys are table names, values are table columns
17
+ //set in self::__construct()
18
  public $seralized_tables = array();
19
 
20
 
21
  /**
22
  * @since 2.2
23
+ *
24
+ * @since 9.22.13
25
  */
26
  function __construct(){
27
  global $wpdb;
32
  //Add the CSS
33
  add_action( 'admin_head', array( $this,'css') );
34
 
35
+ //default tables with seralized data
36
  $this->seralized_tables = array(
37
+ $pf.'options' => 'option_value', //wordpres options
38
+ $pf.'postmeta' => 'meta_value', //post meta data - since 2.3.0
39
+ $pf.'rg_form_meta' => 'display_meta' //gravity forms
40
+ );
41
 
42
  }
43
 
148
  * Updates the datbase
149
  *
150
  * @uses the oldurl and newurl set above
151
+ * @since 9.22.13
152
  *
153
  * @filters apply_filters( 'gluu-seralized-tables', $this->seralized_tables ); - effects makeCheckBoxes as well
154
  */
155
  function makeTheUpdates(){
156
+
157
+ //in case of large tables
158
+ @set_time_limit( 0 );
159
+ @ini_set( 'memory_limit', '256M' );
160
+ @ini_set( 'max_input_time', '-1' );
161
+
162
  global $wpdb;
163
 
164
  $oldurl = $this->oldurl;
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Mat Lipe
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40lipeimagination%2einfo&lc=US&item_name=Go%20Live%20Update%20Urls&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
4
  Tags: Go Live, Urls, Domain Changes
5
  Requires at least: 3.1
6
- Tested up to: 3.5.1
7
- Stable tag: 2.2.2
8
 
9
  == Description ==
10
 
@@ -64,6 +64,8 @@ Most tables will be just fine to update. You may make a backup of your database,
64
  1. Screenshot of a tyical settings page. The verbage will change slightly depending on your database structure
65
 
66
  == Changelog ==
 
 
67
 
68
  = 2.2 =
69
  * Added Gravity Forms Support to Seralized Safe
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40lipeimagination%2einfo&lc=US&item_name=Go%20Live%20Update%20Urls&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
4
  Tags: Go Live, Urls, Domain Changes
5
  Requires at least: 3.1
6
+ Tested up to: 3.6.1
7
+ Stable tag: 2.3.0
8
 
9
  == Description ==
10
 
64
  1. Screenshot of a tyical settings page. The verbage will change slightly depending on your database structure
65
 
66
  == Changelog ==
67
+ = 2.3 =
68
+ * Added Post Meta to Seralized Safe to coincide with Simple Links Version 2.0
69
 
70
  = 2.2 =
71
  * Added Gravity Forms Support to Seralized Safe