Version Description
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Go Live Update URLS |
Version | 3.1.0 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.1.0
- go-live-update-urls.php +3 -3
- languages/gluu.pot +0 -86
- lib/GoLiveUpdateUrls.php +14 -7
- readme.txt +11 -6
go-live-update-urls.php
CHANGED
@@ -2,13 +2,13 @@
|
|
2 |
/*
|
3 |
Plugin Name: Go Live Update URLS
|
4 |
Plugin URI: https://matlipe.com/go-live-update-urls/
|
5 |
-
Description:
|
6 |
Author: Mat Lipe
|
7 |
Author URI: https://matlipe.com/
|
8 |
-
Version: 3.0
|
9 |
Text Domain: go-live-update-urls
|
10 |
*/
|
11 |
-
define( 'GLUU_VERSION', "3.0
|
12 |
|
13 |
define( 'GLUU_VIEWS_DIR', plugin_dir_path(__FILE__) . 'views/' );
|
14 |
define( 'GLUU_URL_VIEWS_DIR', plugins_url('go-live-update-urls').'/views/' );
|
2 |
/*
|
3 |
Plugin Name: Go Live Update URLS
|
4 |
Plugin URI: https://matlipe.com/go-live-update-urls/
|
5 |
+
Description: 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: https://matlipe.com/
|
8 |
+
Version: 3.1.0
|
9 |
Text Domain: go-live-update-urls
|
10 |
*/
|
11 |
+
define( 'GLUU_VERSION', "3.1.0" );
|
12 |
|
13 |
define( 'GLUU_VIEWS_DIR', plugin_dir_path(__FILE__) . 'views/' );
|
14 |
define( 'GLUU_URL_VIEWS_DIR', plugins_url('go-live-update-urls').'/views/' );
|
languages/gluu.pot
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
#, fuzzy
|
2 |
-
msgid ""
|
3 |
-
msgstr ""
|
4 |
-
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
-
"Project-Id-Version: Go Live Update URLS\n"
|
6 |
-
"POT-Creation-Date: 2015-08-14 17:00-0400\n"
|
7 |
-
"PO-Revision-Date: 2015-08-14 17:00-0400\n"
|
8 |
-
"Last-Translator: \n"
|
9 |
-
"Language-Team: \n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Generator: Poedit 1.8.4\n"
|
14 |
-
"X-Poedit-Basepath: ..\n"
|
15 |
-
"X-Poedit-WPHeader: go-live-update-urls.php\n"
|
16 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
18 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
19 |
-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
20 |
-
"X-Poedit-SearchPath-0: .\n"
|
21 |
-
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
22 |
-
|
23 |
-
#: lib/GoLiveUpdateUrls.php:79
|
24 |
-
msgid "Ouch! That hurt! You should not be here!"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: lib/GoLiveUpdateUrls.php:102
|
28 |
-
msgid "URLs have been updated."
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: lib/GoLiveUpdateUrls.php:113
|
32 |
-
msgid "You must fill out both boxes to make the update!."
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: lib/GoLiveUpdateUrls.php:134
|
36 |
-
msgid "Want a smarter, easier to use plugin with better support?"
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: lib/GoLiveUpdateUrls.php:137
|
40 |
-
msgid "Go Pro!"
|
41 |
-
msgstr ""
|
42 |
-
|
43 |
-
#: views/admin-tools-page.php:15
|
44 |
-
msgid ""
|
45 |
-
"This will replace all occurrences \"in the entire database\" of the old URL "
|
46 |
-
"with the New URL."
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: views/admin-tools-page.php:20
|
50 |
-
#, php-format
|
51 |
-
msgid ""
|
52 |
-
"Please Uncheck any Tables which may contain serialized data. The only tables "
|
53 |
-
"which are currently serialized data safe when using this plugin are %s"
|
54 |
-
msgstr ""
|
55 |
-
|
56 |
-
#: views/admin-tools-page.php:29
|
57 |
-
msgid ""
|
58 |
-
"Like any other database updating tool, you should always perform a backup "
|
59 |
-
"before running."
|
60 |
-
msgstr ""
|
61 |
-
|
62 |
-
#: views/admin-tools-page.php:36
|
63 |
-
msgid "Uncheck any tables that you would not like to update."
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#. Plugin Name of the plugin/theme
|
67 |
-
msgid "Go Live Update URLS"
|
68 |
-
msgstr ""
|
69 |
-
|
70 |
-
#. Plugin URI of the plugin/theme
|
71 |
-
msgid "http://matlipe.com/go-live-update-urls/"
|
72 |
-
msgstr ""
|
73 |
-
|
74 |
-
#. Description of the plugin/theme
|
75 |
-
msgid ""
|
76 |
-
"This Plugin Updates all the URLs in the database to point to the new URL "
|
77 |
-
"when making your site live or changing domains."
|
78 |
-
msgstr ""
|
79 |
-
|
80 |
-
#. Author of the plugin/theme
|
81 |
-
msgid "Mat Lipe"
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
-
#. Author URI of the plugin/theme
|
85 |
-
msgid "http://matlipe.com/"
|
86 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/GoLiveUpdateUrls.php
CHANGED
@@ -39,11 +39,9 @@ class GoLiveUpdateUrls {
|
|
39 |
/**
|
40 |
* @since 2.2
|
41 |
*
|
42 |
-
* @since 10.22.13
|
43 |
*/
|
44 |
function __construct(){
|
45 |
global $wpdb;
|
46 |
-
$pf = $wpdb->prefix;
|
47 |
|
48 |
//If the Form has been submitted make the updates
|
49 |
if( !empty( $_POST[ 'gluu-submit' ] ) ){
|
@@ -61,13 +59,18 @@ class GoLiveUpdateUrls {
|
|
61 |
|
62 |
//default tables with seralized data
|
63 |
$this->seralized_tables = array(
|
64 |
-
$wpdb->options => 'option_value', //
|
65 |
-
$wpdb->postmeta => 'meta_value', //post meta
|
66 |
$wpdb->usermeta => 'meta_value', //user meta since 2.5.0
|
67 |
$wpdb->commentmeta => 'meta_value', //comment meta since 2.5.0
|
68 |
$wpdb->sitemeta => 'meta_value' //site meta since 2.5.0
|
69 |
);
|
70 |
|
|
|
|
|
|
|
|
|
|
|
71 |
//we are not going to update user meta if we are not on main blog
|
72 |
if( is_multisite() && $wpdb->blogid != 1 ){
|
73 |
unset( $this->seralized_tables[ $wpdb->usermeta ] );
|
@@ -123,7 +126,6 @@ class GoLiveUpdateUrls {
|
|
123 |
|
124 |
|
125 |
public function pro_notice(){
|
126 |
-
|
127 |
if( class_exists( 'Gluu_Pro' ) ){
|
128 |
return;
|
129 |
}
|
@@ -151,13 +153,18 @@ class GoLiveUpdateUrls {
|
|
151 |
*
|
152 |
* @since 2.4.0
|
153 |
*
|
154 |
-
* @filters
|
155 |
*
|
156 |
* @return array( %table_name% => %table_column% )
|
157 |
*/
|
158 |
function getSerializedTables(){
|
|
|
|
|
|
|
|
|
|
|
159 |
|
160 |
-
return $tables
|
161 |
}
|
162 |
|
163 |
|
39 |
/**
|
40 |
* @since 2.2
|
41 |
*
|
|
|
42 |
*/
|
43 |
function __construct(){
|
44 |
global $wpdb;
|
|
|
45 |
|
46 |
//If the Form has been submitted make the updates
|
47 |
if( !empty( $_POST[ 'gluu-submit' ] ) ){
|
59 |
|
60 |
//default tables with seralized data
|
61 |
$this->seralized_tables = array(
|
62 |
+
$wpdb->options => 'option_value', //WP options
|
63 |
+
$wpdb->postmeta => 'meta_value', //post meta - since 2.3.0
|
64 |
$wpdb->usermeta => 'meta_value', //user meta since 2.5.0
|
65 |
$wpdb->commentmeta => 'meta_value', //comment meta since 2.5.0
|
66 |
$wpdb->sitemeta => 'meta_value' //site meta since 2.5.0
|
67 |
);
|
68 |
|
69 |
+
//term meta since WP 4.4
|
70 |
+
if( isset( $wpdb->termmeta ) ){
|
71 |
+
$this->seralized_tables[ $wpdb->termmeta ] = 'meta_value';
|
72 |
+
}
|
73 |
+
|
74 |
//we are not going to update user meta if we are not on main blog
|
75 |
if( is_multisite() && $wpdb->blogid != 1 ){
|
76 |
unset( $this->seralized_tables[ $wpdb->usermeta ] );
|
126 |
|
127 |
|
128 |
public function pro_notice(){
|
|
|
129 |
if( class_exists( 'Gluu_Pro' ) ){
|
130 |
return;
|
131 |
}
|
153 |
*
|
154 |
* @since 2.4.0
|
155 |
*
|
156 |
+
* @filters go-live-update-urls-serialized-tables - affects tables treated as serialized and checkbox
|
157 |
*
|
158 |
* @return array( %table_name% => %table_column% )
|
159 |
*/
|
160 |
function getSerializedTables(){
|
161 |
+
//@deprecated
|
162 |
+
$tables = apply_filters( 'gluu-seralized-tables', $this->seralized_tables );
|
163 |
+
|
164 |
+
//use this filter
|
165 |
+
$tables = apply_filters( 'go-live-update-urls-serialized-tables', $tables );
|
166 |
|
167 |
+
return $tables;
|
168 |
}
|
169 |
|
170 |
|
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¤cy_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: 4.
|
7 |
-
Stable tag: 3.0
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -19,7 +19,7 @@ Works on both multi-site and single site installs.
|
|
19 |
Some of the features this plugin offers:
|
20 |
|
21 |
* Database table by table selection in case of issues
|
22 |
-
* Supports serialized data in
|
23 |
* Very easy to use admin page - which may be found under Tools
|
24 |
|
25 |
Updates Entire Site including:
|
@@ -34,9 +34,9 @@ Updates Entire Site including:
|
|
34 |
* Site settings
|
35 |
* And much more
|
36 |
|
37 |
-
The admin screen is
|
38 |
|
39 |
-
Additional Serialized Safe tables may be adding using the '
|
40 |
|
41 |
To contribute send pull requests:
|
42 |
https://github.com/lipemat/go-live-update-urls/
|
@@ -73,7 +73,10 @@ Most tables will be just fine to update. You may make a backup of your database,
|
|
73 |
1. Screenshot of a typical settings page. The verbiage will change slightly depending on your database structure
|
74 |
|
75 |
== Changelog ==
|
76 |
-
= 3.
|
|
|
|
|
|
|
77 |
* Greatly improve security
|
78 |
* Improve code organization
|
79 |
* Remove misleading UI messages
|
@@ -113,6 +116,8 @@ Most tables will be just fine to update. You may make a backup of your database,
|
|
113 |
* Removed the wp-options table from the tables to be updated.
|
114 |
|
115 |
== Upgrade Notice ==
|
|
|
|
|
116 |
|
117 |
= 2.4 =
|
118 |
This Version works properly on mulit-site
|
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¤cy_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: 4.4.1
|
7 |
+
Stable tag: 3.1.0
|
8 |
|
9 |
== Description ==
|
10 |
|
19 |
Some of the features this plugin offers:
|
20 |
|
21 |
* Database table by table selection in case of issues
|
22 |
+
* Supports serialized data in options and meta tables
|
23 |
* Very easy to use admin page - which may be found under Tools
|
24 |
|
25 |
Updates Entire Site including:
|
34 |
* Site settings
|
35 |
* And much more
|
36 |
|
37 |
+
The admin screen is extend-able for developers familiar with using filters or template overrides.
|
38 |
|
39 |
+
Additional Serialized Safe tables may be adding using the 'go-live-update-urls-serialized-tables' filter.
|
40 |
|
41 |
To contribute send pull requests:
|
42 |
https://github.com/lipemat/go-live-update-urls/
|
73 |
1. Screenshot of a typical settings page. The verbiage will change slightly depending on your database structure
|
74 |
|
75 |
== Changelog ==
|
76 |
+
= 3.1 =
|
77 |
+
* Add support for serialized term meta
|
78 |
+
|
79 |
+
= 3.0 =
|
80 |
* Greatly improve security
|
81 |
* Improve code organization
|
82 |
* Remove misleading UI messages
|
116 |
* Removed the wp-options table from the tables to be updated.
|
117 |
|
118 |
== Upgrade Notice ==
|
119 |
+
= 3.1 =
|
120 |
+
Upgrade to support WP 4.4's term meta.
|
121 |
|
122 |
= 2.4 =
|
123 |
This Version works properly on mulit-site
|