Go Live Update URLS - Version 2.4.1

Version Description

Download this release

Release Info

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

Code changes from version 2.4.0 to 2.4.1

go-live-update-urls.php CHANGED
@@ -1,18 +1,17 @@
1
<?php
2
/*
3
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://matlipe.com/
8
- Version: 2.4.0
9
*/
10
11
define( 'GLUU_VIEWS_DIR', plugin_dir_path(__FILE__) . 'views/' );
12
define( 'GLUU_URL_VIEWS_DIR', plugins_url('go-live-update-urls').'/views/' );
13
14
require('lib/GoLiveUpdateUrls.php');
15
-
16
17
$GoLiveUpdateUrls = new GoLiveUpdateUrls();
18
-
1
<?php
2
/*
3
Plugin Name: Go Live Update URLS
4
+ 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.1
9
*/
10
11
define( 'GLUU_VIEWS_DIR', plugin_dir_path(__FILE__) . 'views/' );
12
define( 'GLUU_URL_VIEWS_DIR', plugins_url('go-live-update-urls').'/views/' );
13
14
require('lib/GoLiveUpdateUrls.php');
15
+
16
17
$GoLiveUpdateUrls = new GoLiveUpdateUrls();
lib/GoLiveUpdateUrls.php CHANGED
@@ -4,7 +4,7 @@
4
* @author Mat Lipe
5
* @since 2.2
6
*
7
- * @since 10.22.13
8
*
9
* @TODO Cleanup the Names and formatting
10
*/
@@ -141,7 +141,7 @@ class GoLiveUpdateUrls{
141
*
142
* @since 2.2
143
*
144
- * @since 10.22.13
145
* @uses by the view admin-tools-page.php
146
*
147
* @filter 'gluu_table_checkboxes' with 2 param
@@ -158,11 +158,11 @@ class GoLiveUpdateUrls{
158
//Done this way because like wp_% will return all other tables as well such as wp_2
159
if( is_multisite() ){
160
if( $wpdb->blogid == 1 ){
161
- for( $i = 1; $i <= 100; $i++ ){
162
$not_like .= "'".$wpdb->prefix.$i."',";
163
}
164
$not_like = substr($not_like, 0, -1);
165
- $god_query .= ' AND SUBSTRING(TABLE_NAME,1,4) NOT IN ('. $not_like .') AND SUBSTRING(TABLE_NAME,1,5) NOT IN ('. $not_like .')';
166
}
167
}
168
4
* @author Mat Lipe
5
* @since 2.2
6
*
7
+ * @since 10.23.13
8
*
9
* @TODO Cleanup the Names and formatting
10
*/
141
*
142
* @since 2.2
143
*
144
+ * @since 10.23.13
145
* @uses by the view admin-tools-page.php
146
*
147
* @filter 'gluu_table_checkboxes' with 2 param
158
//Done this way because like wp_% will return all other tables as well such as wp_2
159
if( is_multisite() ){
160
if( $wpdb->blogid == 1 ){
161
+ for( $i = 1; $i <= 9; $i++ ){
162
$not_like .= "'".$wpdb->prefix.$i."',";
163
}
164
$not_like = substr($not_like, 0, -1);
165
+ $god_query .= ' AND SUBSTRING(TABLE_NAME,1,4) NOT IN ('. $not_like .')';
166
}
167
}
168
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.6.1
7
- Stable tag: 2.4.0
8
9
== Description ==
10
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.8.0
7
+ Stable tag: 2.4.1
8
9
== Description ==
10