Go Live Update URLS - Version 5.1.0

Version Description

  • Added new languages including French, German, and Spanish
  • Support upcoming blogmeta table in WP 5.0.0+
  • Support updating urlencdode urls
  • Improved support for Visual Composer
  • Add PHP composer support
Download this release

Release Info

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

Code changes from version 5.0.6 to 5.1.0

composer.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "lipemat/go-live-update-urls",
3
+ "description": "Go Live Update Urls WordPress plugin",
4
+ "type": "wordpress-plugin",
5
+ "license": "MIT",
6
+ "authors": [
7
+ {
8
+ "name": "lipemat",
9
+ "email": "mat@matlipe.com"
10
+ }
11
+ ],
12
+ "minimum-stability": "dev",
13
+ "require": {}
14
+ }
go-live-update-urls.php CHANGED
@@ -5,11 +5,11 @@ Plugin URI: https://matlipe.com/go-live-update-urls/
5
Description: Updates all the URLs in the database to point to a new URL when making your site live or changing domains.
6
Author: Mat Lipe
7
Author URI: https://matlipe.com/
8
- Version: 5.0.6
9
Text Domain: go-live-update-urls
10
*/
11
12
- define( 'GO_LIVE_UPDATE_URLS_VERSION', '5.0.6' );
13
14
/** Deprecated to be removed 6/1/18 */
15
require plugin_dir_path( __FILE__ ) . '/src/GoLiveUpdateUrls.php';
@@ -34,16 +34,15 @@ function go_live_update_urls_load() {
34
function go_live_update_urls_autoload( $class ) {
35
$classes = array(
36
//core
37
- 'Go_Live_Update_Urls_PHP_5_2_Mock_Class' => 'PHP_5_2_Mock_Class.php',
38
- 'Go_Live_Update_Urls_Admin_Page' => 'Admin_Page.php',
39
- 'Go_Live_Update_Urls_Core' => 'Core.php',
40
- 'Go_Live_Update_Urls_Database' => 'Database.php',
41
//updaters
42
- 'Go_Live_Update_Urls__Updaters__Abstract' => 'Updaters/Abstract.php',
43
- 'Go_Live_Update_Urls__Updaters__JSON' => 'Updaters/JSON.php',
44
- 'Go_Live_Update_Urls__Updaters__Repo' => 'Updaters/Repo.php',
45
-
46
-
47
);
48
if ( isset( $classes[ $class ] ) ) {
49
require dirname( __FILE__ ) . '/src/' . $classes[ $class ];
5
Description: Updates all the URLs in the database to point to a new URL when making your site live or changing domains.
6
Author: Mat Lipe
7
Author URI: https://matlipe.com/
8
+ Version: 5.1.0
9
Text Domain: go-live-update-urls
10
*/
11
12
+ define( 'GO_LIVE_UPDATE_URLS_VERSION', '5.1.0' );
13
14
/** Deprecated to be removed 6/1/18 */
15
require plugin_dir_path( __FILE__ ) . '/src/GoLiveUpdateUrls.php';
34
function go_live_update_urls_autoload( $class ) {
35
$classes = array(
36
//core
37
+ 'Go_Live_Update_Urls_PHP_5_2_Mock_Class' => 'PHP_5_2_Mock_Class.php',
38
+ 'Go_Live_Update_Urls_Admin_Page' => 'Admin_Page.php',
39
+ 'Go_Live_Update_Urls_Core' => 'Core.php',
40
+ 'Go_Live_Update_Urls_Database' => 'Database.php',
41
//updaters
42
+ 'Go_Live_Update_Urls__Updaters__Abstract' => 'Updaters/Abstract.php',
43
+ 'Go_Live_Update_Urls__Updaters__JSON' => 'Updaters/JSON.php',
44
+ 'Go_Live_Update_Urls__Updaters__Repo' => 'Updaters/Repo.php',
45
+ 'Go_Live_Update_Urls__Updaters__Url_Encoded' => 'Updaters/Url_Encoded.php',
46
);
47
if ( isset( $classes[ $class ] ) ) {
48
require dirname( __FILE__ ) . '/src/' . $classes[ $class ];
languages/go-live-update-urls-de_DE.mo ADDED
Binary file
languages/go-live-update-urls-de_DE.po ADDED
@@ -0,0 +1,132 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
4
+ "Project-Id-Version: Go Live Update URLS\n"
5
+ "POT-Creation-Date: 2018-05-17 10:41-0400\n"
6
+ "PO-Revision-Date: 2018-05-17 10:52-0400\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.7\n"
12
+ "X-Poedit-Basepath: ..\n"
13
+ "X-Poedit-WPHeader: go-live-update-urls.php\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "Last-Translator: Mat Lipe <mat@matlipe.com>\n"
19
+ "Language: de_DE\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
22
+
23
+ #: src/Admin_Page.php:38
24
+ msgid "Ouch! That hurt! You should not be here!"
25
+ msgstr "Autsch! Das tut weh! Du solltest nicht hier sein!"
26
+
27
+ #: src/Admin_Page.php:65
28
+ msgid "The URLS in the checked tables have been updated."
29
+ msgstr "Die URLs in den überprüften Tabellen wurden aktualisiert."
30
+
31
+ #: src/Admin_Page.php:82
32
+ msgid "You must fill out both URLS to make the update!."
33
+ msgstr "Sie müssen beide URLs ausfüllen, um das Update durchzuführen!."
34
+
35
+ #: src/Admin_Page.php:144
36
+ msgid "Serialized"
37
+ msgstr "Seriell"
38
+
39
+ #: views/admin-tools-page.php:16
40
+ msgid "Go Live Update Urls"
41
+ msgstr ""
42
+
43
+ #: views/admin-tools-page.php:22
44
+ #, php-format
45
+ msgctxt "{<strong>} {</strong>}"
46
+ msgid ""
47
+ "This will replace all occurrences %1$sin the entire database%2$s of the Old "
48
+ "URL with the New URL."
49
+ msgstr ""
50
+ "Dadurch werden alle Vorkommen%1$sin der gesamten Datenbank%2$s der alten URL "
51
+ "durch die neue URL ersetzt."
52
+
53
+ #: views/admin-tools-page.php:27
54
+ msgid ""
55
+ "Like any other database updating tool, you should always perform a backup "
56
+ "before running."
57
+ msgstr ""
58
+ "Wie jedes andere Datenbankaktualisierungstool sollten Sie vor dem Ausführen "
59
+ "immer eine Sicherung durchführen."
60
+
61
+ #: views/admin-tools-page.php:41
62
+ msgid "WordPress Core Tables"
63
+ msgstr "Kerntabellen"
64
+
65
+ #: views/admin-tools-page.php:45
66
+ msgid "These tables are safe to update with the basic version of this plugin."
67
+ msgstr ""
68
+ "Diese Tabellen können mit der Basisversion dieses Plugins sicher "
69
+ "aktualisiert werden."
70
+
71
+ #: views/admin-tools-page.php:66
72
+ msgid "Tables Created By Plugins"
73
+ msgstr "Tabellen erstellt von Plugins"
74
+
75
+ #: views/admin-tools-page.php:72
76
+ #, php-format
77
+ msgctxt "{<br />}{<a>}{</a>}"
78
+ msgid ""
79
+ "These tables are probably NOT SAFE to update with the basic version of this "
80
+ "plugin. %1$sTo support tables created by plugins use the %2$sPro Version%3$s."
81
+ msgstr ""
82
+ "Diese Tabellen sind wahrscheinlich NICHT SICHER, um mit der Basisversion "
83
+ "dieses Plugins zu aktualisieren. %1$sUm Tabellen zu unterstützen, die von "
84
+ "Plugins erstellt wurden, verwenden Sie%2$sPro Version%3$s."
85
+
86
+ #: views/admin-tools-page.php:94 views/admin-tools-page.php:104
87
+ msgid "Old URL"
88
+ msgstr "Alte URL"
89
+
90
+ #: views/admin-tools-page.php:110 views/admin-tools-page.php:120
91
+ msgid "New URL"
92
+ msgstr "Neue URL"
93
+
94
+ #: views/admin-tools-page.php:127
95
+ msgid "Only the checked tables will be updated."
96
+ msgstr "Nur die überprüften Tabellen werden aktualisiert."
97
+
98
+ #: views/admin-tools-page.php:138
99
+ #, php-format
100
+ msgctxt "{<a>}{</a>}"
101
+ msgid "To test this change before running it, use %1$sPro Version 2.0.0+%2$s."
102
+ msgstr ""
103
+ "Um diese Änderung vor dem Ausführen zu testen, verwenden Sie%1$sPro Version "
104
+ "2.0.0 +%2$s."
105
+
106
+ #: views/admin-tools-page.php:143
107
+ msgid "Update URLs"
108
+ msgstr "URLs aktualisieren"
109
+
110
+ #. Plugin Name of the plugin/theme
111
+ msgid "Go Live Update URLS"
112
+ msgstr ""
113
+
114
+ #. Plugin URI of the plugin/theme
115
+ msgid "https://matlipe.com/go-live-update-urls/"
116
+ msgstr ""
117
+
118
+ #. Description of the plugin/theme
119
+ msgid ""
120
+ "Updates all the URLs in the database to point to a new URL when making your "
121
+ "site live or changing domains."
122
+ msgstr ""
123
+ "Aktualisiert alle URLs in der Datenbank so, dass sie auf eine neue URL "
124
+ "verweisen, wenn Sie Ihre Site live schalten oder Domains ändern."
125
+
126
+ #. Author of the plugin/theme
127
+ msgid "Mat Lipe"
128
+ msgstr "Mat Lipe"
129
+
130
+ #. Author URI of the plugin/theme
131
+ msgid "https://matlipe.com/"
132
+ msgstr "https://matlipe.com/"
languages/go-live-update-urls-es_ES.mo ADDED
Binary file
languages/go-live-update-urls-es_ES.po ADDED
@@ -0,0 +1,131 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
4
+ "Project-Id-Version: Go Live Update URLS\n"
5
+ "POT-Creation-Date: 2018-05-17 10:41-0400\n"
6
+ "PO-Revision-Date: 2018-05-17 10:50-0400\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.7\n"
12
+ "X-Poedit-Basepath: ..\n"
13
+ "X-Poedit-WPHeader: go-live-update-urls.php\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "Last-Translator: Mat Lipe <mat@matlipe.com>\n"
19
+ "Language: es_ES\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
22
+
23
+ #: src/Admin_Page.php:38
24
+ msgid "Ouch! That hurt! You should not be here!"
25
+ msgstr "¡Ay! ¡Eso duele! ¡No deberías estar aquí!"
26
+
27
+ #: src/Admin_Page.php:65
28
+ msgid "The URLS in the checked tables have been updated."
29
+ msgstr "Las URL en las tablas comprobadas se han actualizado."
30
+
31
+ #: src/Admin_Page.php:82
32
+ msgid "You must fill out both URLS to make the update!."
33
+ msgstr "¡Debe completar ambas URL para hacer la actualización !."
34
+
35
+ #: src/Admin_Page.php:144
36
+ msgid "Serialized"
37
+ msgstr "Serializado"
38
+
39
+ #: views/admin-tools-page.php:16
40
+ msgid "Go Live Update Urls"
41
+ msgstr ""
42
+
43
+ #: views/admin-tools-page.php:22
44
+ #, php-format
45
+ msgctxt "{<strong>} {</strong>}"
46
+ msgid ""
47
+ "This will replace all occurrences %1$sin the entire database%2$s of the Old "
48
+ "URL with the New URL."
49
+ msgstr ""
50
+ "Esto reemplazará todas las ocurrencias%1$ sin toda la base de datos%2$ s de "
51
+ "la URL anterior con la Nueva URL."
52
+
53
+ #: views/admin-tools-page.php:27
54
+ msgid ""
55
+ "Like any other database updating tool, you should always perform a backup "
56
+ "before running."
57
+ msgstr ""
58
+ "Al igual que cualquier otra herramienta de actualización de base de datos, "
59
+ "siempre debe realizar una copia de seguridad antes de ejecutar."
60
+
61
+ #: views/admin-tools-page.php:41
62
+ msgid "WordPress Core Tables"
63
+ msgstr "Tablas centrales"
64
+
65
+ #: views/admin-tools-page.php:45
66
+ msgid "These tables are safe to update with the basic version of this plugin."
67
+ msgstr ""
68
+ "Estas tablas son seguras para actualizarse con la versión básica de este "
69
+ "complemento."
70
+
71
+ #: views/admin-tools-page.php:66
72
+ msgid "Tables Created By Plugins"
73
+ msgstr "Tablas creadas por complementos"
74
+
75
+ #: views/admin-tools-page.php:72
76
+ #, php-format
77
+ msgctxt "{<br />}{<a>}{</a>}"
78
+ msgid ""
79
+ "These tables are probably NOT SAFE to update with the basic version of this "
80
+ "plugin. %1$sTo support tables created by plugins use the %2$sPro Version%3$s."
81
+ msgstr ""
82
+ "Estas tablas probablemente NO SON SEGURAS para actualizar con la versión "
83
+ "básica de este complemento. %1 sPara soportar tablas creadas por plugins use"
84
+ "%2$sPro Version%3$s."
85
+
86
+ #: views/admin-tools-page.php:94 views/admin-tools-page.php:104
87
+ msgid "Old URL"
88
+ msgstr "URL antigua"
89
+
90
+ #: views/admin-tools-page.php:110 views/admin-tools-page.php:120
91
+ msgid "New URL"
92
+ msgstr "Nueva URL"
93
+
94
+ #: views/admin-tools-page.php:127
95
+ msgid "Only the checked tables will be updated."
96
+ msgstr "Solo las tablas comprobadas serán actualizadas."
97
+
98
+ #: views/admin-tools-page.php:138
99
+ #, php-format
100
+ msgctxt "{<a>}{</a>}"
101
+ msgid "To test this change before running it, use %1$sPro Version 2.0.0+%2$s."
102
+ msgstr ""
103
+ "Para probar este cambio antes de ejecutarlo, use%1$sPro Versión 2.0.0+%2s."
104
+
105
+ #: views/admin-tools-page.php:143
106
+ msgid "Update URLs"
107
+ msgstr "Actualizar URL"
108
+
109
+ #. Plugin Name of the plugin/theme
110
+ msgid "Go Live Update URLS"
111
+ msgstr ""
112
+
113
+ #. Plugin URI of the plugin/theme
114
+ msgid "https://matlipe.com/go-live-update-urls/"
115
+ msgstr ""
116
+
117
+ #. Description of the plugin/theme
118
+ msgid ""
119
+ "Updates all the URLs in the database to point to a new URL when making your "
120
+ "site live or changing domains."
121
+ msgstr ""
122
+ "Actualiza todas las URL en la base de datos para apuntar a una nueva URL al "
123
+ "hacer que su sitio esté activo o cambiar de dominio."
124
+
125
+ #. Author of the plugin/theme
126
+ msgid "Mat Lipe"
127
+ msgstr ""
128
+
129
+ #. Author URI of the plugin/theme
130
+ msgid "https://matlipe.com/"
131
+ msgstr ""
languages/go-live-update-urls-fr_FR.mo ADDED
Binary file
languages/go-live-update-urls-fr_FR.po ADDED
@@ -0,0 +1,133 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
4
+ "Project-Id-Version: Go Live Update URLS\n"
5
+ "POT-Creation-Date: 2018-05-17 10:41-0400\n"
6
+ "PO-Revision-Date: 2018-05-17 10:55-0400\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 2.0.7\n"
12
+ "X-Poedit-Basepath: ..\n"
13
+ "X-Poedit-WPHeader: go-live-update-urls.php\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "Last-Translator: Mat Lipe <mat@matlipe.com>\n"
19
+ "Language: fr_FR\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
22
+
23
+ #: src/Admin_Page.php:38
24
+ msgid "Ouch! That hurt! You should not be here!"
25
+ msgstr "Aie! Ça fait mal! Tu ne devrais pas être ici!"
26
+
27
+ #: src/Admin_Page.php:65
28
+ msgid "The URLS in the checked tables have been updated."
29
+ msgstr "Les URL dans les tables vérifiées ont été mises à jour."
30
+
31
+ #: src/Admin_Page.php:82
32
+ msgid "You must fill out both URLS to make the update!."
33
+ msgstr "Vous devez remplir les deux URL pour effectuer la mise à jour!"
34
+
35
+ #: src/Admin_Page.php:144
36
+ msgid "Serialized"
37
+ msgstr "Serial"
38
+
39
+ #: views/admin-tools-page.php:16
40
+ msgid "Go Live Update Urls"
41
+ msgstr ""
42
+
43
+ #: views/admin-tools-page.php:22
44
+ #, php-format
45
+ msgctxt "{<strong>} {</strong>}"
46
+ msgid ""
47
+ "This will replace all occurrences %1$sin the entire database%2$s of the Old "
48
+ "URL with the New URL."
49
+ msgstr ""
50
+ "Cela remplacera toutes les occurrences%1$sin de la base de données entière"
51
+ "%2$s de l'ancienne URL avec la nouvelle URL."
52
+
53
+ #: views/admin-tools-page.php:27
54
+ msgid ""
55
+ "Like any other database updating tool, you should always perform a backup "
56
+ "before running."
57
+ msgstr ""
58
+ "Comme tout autre outil de mise à jour de base de données, vous devez "
59
+ "toujours effectuer une sauvegarde avant de l'exécuter."
60
+
61
+ #: views/admin-tools-page.php:41
62
+ msgid "WordPress Core Tables"
63
+ msgstr "Tables de base"
64
+
65
+ #: views/admin-tools-page.php:45
66
+ msgid "These tables are safe to update with the basic version of this plugin."
67
+ msgstr ""
68
+ "Ces tables peuvent être mises à jour en toute sécurité avec la version de "
69
+ "base de ce plugin."
70
+
71
+ #: views/admin-tools-page.php:66
72
+ msgid "Tables Created By Plugins"
73
+ msgstr "Tables créées par des plugins"
74
+
75
+ #: views/admin-tools-page.php:72
76
+ #, php-format
77
+ msgctxt "{<br />}{<a>}{</a>}"
78
+ msgid ""
79
+ "These tables are probably NOT SAFE to update with the basic version of this "
80
+ "plugin. %1$sTo support tables created by plugins use the %2$sPro Version%3$s."
81
+ msgstr ""
82
+ "Ces tableaux ne sont probablement pas sûrs de mettre à jour avec la version "
83
+ "de base de ce plugin. %1$sPour prendre en charge les tables créées par les "
84
+ "plugins, utilisez la version%2$sPro%3$s."
85
+
86
+ #: views/admin-tools-page.php:94 views/admin-tools-page.php:104
87
+ msgid "Old URL"
88
+ msgstr "Ancienne URL"
89
+
90
+ #: views/admin-tools-page.php:110 views/admin-tools-page.php:120
91
+ msgid "New URL"
92
+ msgstr "Nouvelle URL"
93
+
94
+ #: views/admin-tools-page.php:127
95
+ msgid "Only the checked tables will be updated."
96
+ msgstr "Seules les tables vérifiées seront mises à jour."
97
+
98
+ #: views/admin-tools-page.php:138
99
+ #, php-format
100
+ msgctxt "{<a>}{</a>}"
101
+ msgid "To test this change before running it, use %1$sPro Version 2.0.0+%2$s."
102
+ msgstr ""
103
+ "Pour tester cette modification avant de l'exécuter, utilisez%1$sPro Version "
104
+ "2.0.0 +%2$s."
105
+
106
+ #: views/admin-tools-page.php:143
107
+ msgid "Update URLs"
108
+ msgstr "Mettre à jour les URL"
109
+
110
+ #. Plugin Name of the plugin/theme
111
+ msgid "Go Live Update URLS"
112
+ msgstr ""
113
+
114
+ #. Plugin URI of the plugin/theme
115
+ msgid "https://matlipe.com/go-live-update-urls/"
116
+ msgstr ""
117
+
118
+ #. Description of the plugin/theme
119
+ msgid ""
120
+ "Updates all the URLs in the database to point to a new URL when making your "
121
+ "site live or changing domains."
122
+ msgstr ""
123
+ "Met à jour toutes les URL dans la base de données pour pointer vers une "
124
+ "nouvelle URL lors de la mise en ligne de votre site ou du changement de "
125
+ "domaine."
126
+
127
+ #. Author of the plugin/theme
128
+ msgid "Mat Lipe"
129
+ msgstr ""
130
+
131
+ #. Author URI of the plugin/theme
132
+ msgid "https://matlipe.com/"
133
+ msgstr ""
languages/go-live-update-urls.pot CHANGED
@@ -3,99 +3,98 @@ msgid ""
3
msgstr ""
4
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
"Project-Id-Version: Go Live Update URLS\n"
6
- "POT-Creation-Date: 2016-05-15 10:48-0400\n"
7
"PO-Revision-Date: 2016-05-15 10:47-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.7\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
- #: src/GoLiveUpdateUrls.php:51
24
msgid "Ouch! That hurt! You should not be here!"
25
msgstr ""
26
27
- #: src/GoLiveUpdateUrls.php:74
28
msgid "The URLS in the checked tables have been updated."
29
msgstr ""
30
31
- #: src/GoLiveUpdateUrls.php:85
32
- msgid "You must fill out both boxes to make the update!."
33
msgstr ""
34
35
- #: src/GoLiveUpdateUrls.php:203
36
- msgid "Serialized Safe"
37
msgstr ""
38
39
- #: views/admin-tools-page.php:17
40
#, php-format
41
- msgctxt "{<strong>}"
42
msgid ""
43
- "This will replace all occurrences %sin the entire database%s of the Old URL "
44
- "with the New URL."
45
msgstr ""
46
47
- #: views/admin-tools-page.php:22
48
msgid ""
49
"Like any other database updating tool, you should always perform a backup "
50
"before running."
51
msgstr ""
52
53
- #: views/admin-tools-page.php:34
54
msgid "WordPress Core Tables"
55
msgstr ""
56
57
- #: views/admin-tools-page.php:37
58
- msgid ""
59
- "These tables are safe to update with the basic version of this plugin (the "
60
- "version you are currently using)."
61
- msgstr ""
62
-
63
- #: views/admin-tools-page.php:44 views/admin-tools-page.php:45
64
- #: views/admin-tools-page.php:69
65
- msgid "un-check all"
66
- msgstr ""
67
-
68
- #: views/admin-tools-page.php:46 views/admin-tools-page.php:68
69
- #: views/admin-tools-page.php:70
70
- msgid "check all"
71
msgstr ""
72
73
- #: views/admin-tools-page.php:58
74
msgid "Tables Created By Plugins"
75
msgstr ""
76
77
- #: views/admin-tools-page.php:61
78
#, php-format
79
msgctxt "{<br />}{<a>}{</a>}"
80
msgid ""
81
"These tables are probably NOT SAFE to update with the basic version of this "
82
- "plugin. %sTo support tables created by plugins use the %sPro Version%s."
83
msgstr ""
84
85
- #: views/admin-tools-page.php:82 views/admin-tools-page.php:85
86
msgid "Old URL"
87
msgstr ""
88
89
- #: views/admin-tools-page.php:90 views/admin-tools-page.php:93
90
msgid "New URL"
91
msgstr ""
92
93
- #: views/admin-tools-page.php:100
94
msgid "Only the checked tables will be updated."
95
msgstr ""
96
97
- #: views/admin-tools-page.php:104
98
- msgid "Make It Happen"
99
msgstr ""
100
101
#. Plugin Name of the plugin/theme
@@ -108,8 +107,8 @@ msgstr ""
108
109
#. Description of the plugin/theme
110
msgid ""
111
- "Updates all the URLs in the database to point to the new URL when making "
112
- "your site live or changing domains."
113
msgstr ""
114
115
#. Author of the plugin/theme
3
msgstr ""
4
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
"Project-Id-Version: Go Live Update URLS\n"
6
+ "POT-Creation-Date: 2018-05-17 10:41-0400\n"
7
"PO-Revision-Date: 2016-05-15 10:47-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 2.0.7\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;"
19
+ "_n_noop:1,2;_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
+ #: src/Admin_Page.php:38
24
msgid "Ouch! That hurt! You should not be here!"
25
msgstr ""
26
27
+ #: src/Admin_Page.php:65
28
msgid "The URLS in the checked tables have been updated."
29
msgstr ""
30
31
+ #: src/Admin_Page.php:82
32
+ msgid "You must fill out both URLS to make the update!."
33
msgstr ""
34
35
+ #: src/Admin_Page.php:144
36
+ msgid "Serialized"
37
msgstr ""
38
39
+ #: views/admin-tools-page.php:16
40
+ msgid "Go Live Update Urls"
41
+ msgstr ""
42
+
43
+ #: views/admin-tools-page.php:22
44
#, php-format
45
+ msgctxt "{<strong>} {</strong>}"
46
msgid ""
47
+ "This will replace all occurrences %1$sin the entire database%2$s of the Old "
48
+ "URL with the New URL."
49
msgstr ""
50
51
+ #: views/admin-tools-page.php:27
52
msgid ""
53
"Like any other database updating tool, you should always perform a backup "
54
"before running."
55
msgstr ""
56
57
+ #: views/admin-tools-page.php:41
58
msgid "WordPress Core Tables"
59
msgstr ""
60
61
+ #: views/admin-tools-page.php:45
62
+ msgid "These tables are safe to update with the basic version of this plugin."
63
msgstr ""
64
65
+ #: views/admin-tools-page.php:66
66
msgid "Tables Created By Plugins"
67
msgstr ""
68
69
+ #: views/admin-tools-page.php:72
70
#, php-format
71
msgctxt "{<br />}{<a>}{</a>}"
72
msgid ""
73
"These tables are probably NOT SAFE to update with the basic version of this "
74
+ "plugin. %1$sTo support tables created by plugins use the %2$sPro Version"
75
+ "%3$s."
76
msgstr ""
77
78
+ #: views/admin-tools-page.php:94 views/admin-tools-page.php:104
79
msgid "Old URL"
80
msgstr ""
81
82
+ #: views/admin-tools-page.php:110 views/admin-tools-page.php:120
83
msgid "New URL"
84
msgstr ""
85
86
+ #: views/admin-tools-page.php:127
87
msgid "Only the checked tables will be updated."
88
msgstr ""
89
90
+ #: views/admin-tools-page.php:138
91
+ #, php-format
92
+ msgctxt "{<a>}{</a>}"
93
+ msgid "To test this change before running it, use %1$sPro Version 2.0.0+%2$s."
94
+ msgstr ""
95
+
96
+ #: views/admin-tools-page.php:143
97
+ msgid "Update URLs"
98
msgstr ""
99
100
#. Plugin Name of the plugin/theme
107
108
#. Description of the plugin/theme
109
msgid ""
110
+ "Updates all the URLs in the database to point to a new URL when making your "
111
+ "site live or changing domains."
112
msgstr ""
113
114
#. Author of the plugin/theme
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
Contributors: Mat Lipe
3
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40matlipe%2ecom&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: 4.5.0
6
Tested up to: 4.9.5
7
Requires PHP: 5.2.4
8
- Stable tag: 5.0.6
9
10
== Description ==
11
@@ -13,7 +13,7 @@ Goes through entire site and replaces all instances of an old url with a new one
13
14
<strong>Check out <a href="https://matlipe.com/product/go-live-update-urls-pro/" target="_blank">Go Live Update Urls Pro</a> for more features including priority support, the ability to test a URL before running, updating of tables created by plugins, and so much more!</strong>
15
16
- <blockquote><a href="https://matlipe.com/product/go-live-update-urls-pro/" target="_blank">Pro version 2.2.0</a> just dropped with lots of great new stuff!</blockquote>
17
18
19
<h4>Features</h4>
@@ -46,6 +46,12 @@ Goes through entire site and replaces all instances of an old url with a new one
46
* Predictive URLs automatically fill in the OLD URL and NEW URL.
47
* Access to members only support area.
48
49
50
<h4>Contribute</h4>
51
Send pull requests via the <a href="https://github.com/lipemat/go-live-update-urls/">Github Repo</a>
@@ -82,6 +88,13 @@ If you wish to try to update tables mentioned as not safe anyway, you may make a
82
1. Typical settings page. The verbiage will change slightly depending on your database structure
83
84
== Changelog ==
85
= 5.0.0 =
86
* Bring back PHP 5.2 support
87
* Restructure entire codebase
2
Contributors: Mat Lipe
3
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40matlipe%2ecom&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: 4.6.0
6
Tested up to: 4.9.5
7
Requires PHP: 5.2.4
8
+ Stable tag: 5.1.0
9
10
== Description ==
11
13
14
<strong>Check out <a href="https://matlipe.com/product/go-live-update-urls-pro/" target="_blank">Go Live Update Urls Pro</a> for more features including priority support, the ability to test a URL before running, updating of tables created by plugins, and so much more!</strong>
15
16
+ <blockquote><a href="https://matlipe.com/product/go-live-update-urls-pro/" target="_blank">Pro version 2.3.0</a> just dropped with lots of great new stuff!</blockquote>
17
18
19
<h4>Features</h4>
46
* Predictive URLs automatically fill in the OLD URL and NEW URL.
47
* Access to members only support area.
48
49
+ <h4>Currently ships with the following languages</h4>
50
+ * English (US)
51
+ * French (fr_FR)
52
+ * German (de_DE)
53
+ * Spanish (es_ES)
54
+
55
56
<h4>Contribute</h4>
57
Send pull requests via the <a href="https://github.com/lipemat/go-live-update-urls/">Github Repo</a>
88
1. Typical settings page. The verbiage will change slightly depending on your database structure
89
90
== Changelog ==
91
+ = 5.1.0 =
92
+ * Added new languages including French, German, and Spanish
93
+ * Support upcoming blogmeta table in WP 5.0.0+
94
+ * Support updating urlencdode urls
95
+ * Improved support for Visual Composer
96
+ * Add PHP composer support
97
+
98
= 5.0.0 =
99
* Bring back PHP 5.2 support
100
* Restructure entire codebase
src/Core.php CHANGED
@@ -32,6 +32,7 @@ class Go_Live_Update_Urls_Core {
32
public function raise_resource_limits() {
33
@set_time_limit( 0 );
34
@ini_set( 'max_input_time', '-1' );
35
wp_raise_memory_limit( 'go-live-update-urls/database/memory-limit' );
36
}
37
@@ -64,7 +65,7 @@ class Go_Live_Update_Urls_Core {
64
* @return bool
65
*/
66
public function update( $old_url, $new_url ) {
67
- $db = Go_Live_Update_Urls_Database::instance();
68
$tables = $db->get_all_table_names();
69
70
do_action( 'go-live-update-urls/core/before-update', $old_url, $new_url, $tables );
32
public function raise_resource_limits() {
33
@set_time_limit( 0 );
34
@ini_set( 'max_input_time', '-1' );
35
+
36
wp_raise_memory_limit( 'go-live-update-urls/database/memory-limit' );
37
}
38
65
* @return bool
66
*/
67
public function update( $old_url, $new_url ) {
68
+ $db = Go_Live_Update_Urls_Database::instance();
69
$tables = $db->get_all_table_names();
70
71
do_action( 'go-live-update-urls/core/before-update', $old_url, $new_url, $tables );
src/Database.php CHANGED
@@ -30,18 +30,19 @@ class Go_Live_Update_Urls_Database {
30
$wpdb->postmeta => 'meta_value',
31
$wpdb->commentmeta => 'meta_value',
32
$wpdb->termmeta => 'meta_value',
33
);
34
35
//we are not going to update user meta if we are not on main blog
36
if ( is_multisite() ) {
37
$serialized_tables[ $wpdb->sitemeta ] = 'meta_value';
38
- if ( 1 === (int) $wpdb->blogid ) {
39
- $serialized_tables[ $wpdb->usermeta ] = 'meta_value';
40
}
41
- } else {
42
- $serialized_tables[ $wpdb->usermeta ] = 'meta_value';
43
}
44
45
$tables = apply_filters( 'go-live-update-urls-serialized-tables', $serialized_tables );
46
47
return $tables;
@@ -75,11 +76,6 @@ class Go_Live_Update_Urls_Database {
75
public function get_core_tables() {
76
global $wpdb;
77
78
- //Pre WP 4.4
79
- if ( ! isset( $wpdb->termmeta ) ) {
80
- $wpdb->termmeta = false;
81
- }
82
-
83
$tables = array(
84
$wpdb->posts,
85
$wpdb->comments,
@@ -95,9 +91,6 @@ class Go_Live_Update_Urls_Database {
95
$wpdb->usermeta,
96
);
97
98
- if ( isset( $wpdb->termmeta ) ) {
99
- $tables[] = $wpdb->termmeta;
100
- }
101
if ( is_multisite() ) {
102
$tables[] = $wpdb->blogs;
103
$tables[] = $wpdb->signups;
@@ -106,6 +99,10 @@ class Go_Live_Update_Urls_Database {
106
$tables[] = $wpdb->sitecategories;
107
$tables[] = $wpdb->registration_log;
108
$tables[] = $wpdb->blog_versions;
109
}
110
111
return apply_filters( 'go_live_update_urls_core_tables', $tables );
@@ -124,8 +121,8 @@ class Go_Live_Update_Urls_Database {
124
global $wpdb;
125
$query = "SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA='" . $wpdb->dbname . "' AND TABLE_NAME LIKE '" . $wpdb->prefix . "%'";
126
127
- //Done this way because like wp_% will return all other tables as well such as wp_2
128
- //so we exclude all the possibles e.g. wp_2, wp_3, wp_4 up to 9
129
$not_like = null;
130
if ( 1 === (int) $wpdb->blogid && is_multisite() ) {
131
for ( $i = 1; $i <= 9; $i ++ ) {
@@ -134,14 +131,13 @@ class Go_Live_Update_Urls_Database {
134
$not_like = substr( $not_like, 0, - 1 );
135
$query .= ' AND SUBSTRING(TABLE_NAME,1,4) NOT IN (' . $not_like . ')';
136
}
137
-
138
return $wpdb->get_col( $query );
139
}
140
141
142
/**
143
* @deprecated 5.0.1
144
- * @see Go_Live_Update_Urls_Database::get_all_table_names()
145
*/
146
public function get_all_tables() {
147
$names = $this->get_all_table_names();
@@ -166,7 +162,7 @@ class Go_Live_Update_Urls_Database {
166
* @param string $new_url
167
* @param array $tables
168
*
169
- * @todo split this functionality into its own OOP class
170
*
171
* @return bool
172
*/
@@ -186,7 +182,7 @@ class Go_Live_Update_Urls_Database {
186
}
187
188
$serialized_tables = $this->get_serialized_tables();
189
- $tables = apply_filters( 'go-live-update-urls/database/update-tables', $tables, $this );
190
191
// Backward compatibility
192
if ( array_values( $tables ) !== $tables ) {
@@ -242,7 +238,7 @@ class Go_Live_Update_Urls_Database {
242
) ) );
243
}
244
}
245
- }
246
247
wp_cache_flush();
248
30
$wpdb->postmeta => 'meta_value',
31
$wpdb->commentmeta => 'meta_value',
32
$wpdb->termmeta => 'meta_value',
33
+ $wpdb->usermeta => 'meta_value',
34
);
35
36
//we are not going to update user meta if we are not on main blog
37
if ( is_multisite() ) {
38
$serialized_tables[ $wpdb->sitemeta ] = 'meta_value';
39
+ //WP 5.0.0+
40
+ if ( isset( $wpdb->blogmeta ) ) {
41
+ $serialized_tables[ $wpdb->blogmeta ] = 'meta_value';
42
}
43
}
44
45
+
46
$tables = apply_filters( 'go-live-update-urls-serialized-tables', $serialized_tables );
47
48
return $tables;
76
public function get_core_tables() {
77
global $wpdb;
78
79
$tables = array(
80
$wpdb->posts,
81
$wpdb->comments,
91
$wpdb->usermeta,
92
);
93
94
if ( is_multisite() ) {
95
$tables[] = $wpdb->blogs;
96
$tables[] = $wpdb->signups;
99
$tables[] = $wpdb->sitecategories;
100
$tables[] = $wpdb->registration_log;
101
$tables[] = $wpdb->blog_versions;
102
+ //WP 5.0.0+
103
+ if ( isset( $wpdb->blogmeta ) ) {
104
+ $tables[ $wpdb->blogmeta ];
105
+ }
106
}
107
108
return apply_filters( 'go_live_update_urls_core_tables', $tables );
121
global $wpdb;
122
$query = "SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA='" . $wpdb->dbname . "' AND TABLE_NAME LIKE '" . $wpdb->prefix . "%'";
123
124
+ //Site 1's 'LIKE wp_%' will return all tables in the database
125
+ //so we exclude all possible sub sites e.g. wp_2, wp_3 up to 9
126
$not_like = null;
127
if ( 1 === (int) $wpdb->blogid && is_multisite() ) {
128
for ( $i = 1; $i <= 9; $i ++ ) {
131
$not_like = substr( $not_like, 0, - 1 );
132
$query .= ' AND SUBSTRING(TABLE_NAME,1,4) NOT IN (' . $not_like . ')';
133
}
134
return $wpdb->get_col( $query );
135
}
136
137
138
/**
139
* @deprecated 5.0.1
140
+ * @see Go_Live_Update_Urls_Database::get_all_table_names()
141
*/
142
public function get_all_tables() {
143
$names = $this->get_all_table_names();
162
* @param string $new_url
163
* @param array $tables
164
*
165
+ * @todo split this functionality into its own OOP class
166
*
167
* @return bool
168
*/
182
}
183
184
$serialized_tables = $this->get_serialized_tables();
185
+ $tables = apply_filters( 'go-live-update-urls/database/update-tables', $tables, $this );
186
187
// Backward compatibility
188
if ( array_values( $tables ) !== $tables ) {
238
) ) );
239
}
240
}
241
+ }
242
243
wp_cache_flush();
244
src/Updaters/Abstract.php CHANGED
@@ -25,5 +25,13 @@ abstract class Go_Live_Update_Urls__Updaters__Abstract {
25
}
26
27
28
abstract public function update_data();
29
}
25
}
26
27
28
+ protected function update_column( $old, $new ) {
29
+ global $wpdb;
30
+
31
+ $update_query = 'UPDATE ' . $this->table . ' SET ' . $this->column . ' = replace(' . $this->column . ', %s, %s)';
32
+ $wpdb->query( $wpdb->prepare( $update_query, array( $old, $new ) ) );
33
+ }
34
+
35
+
36
abstract public function update_data();
37
}
src/Updaters/JSON.php CHANGED
@@ -26,12 +26,9 @@ class Go_Live_Update_Urls__Updaters__JSON extends Go_Live_Update_Urls__Updaters_
26
return false;
27
}
28
29
- global $wpdb;
30
$old = substr( wp_json_encode( $this->old ), 1, - 1 );
31
$new = substr( wp_json_encode( $this->new ), 1, - 1 );
32
-
33
- $update_query = "UPDATE " . $this->table . " SET " . $this->column . " = replace(" . $this->column . ", %s, %s)";
34
- $wpdb->query( $wpdb->prepare( $update_query, array( $old, $new ) ) );
35
36
return true;
37
}
26
return false;
27
}
28
29
$old = substr( wp_json_encode( $this->old ), 1, - 1 );
30
$new = substr( wp_json_encode( $this->new ), 1, - 1 );
31
+ $this->update_column( $old, $new );
32
33
return true;
34
}
src/Updaters/Repo.php CHANGED
@@ -18,8 +18,9 @@ class Go_Live_Update_Urls__Updaters__Repo {
18
* @return array
19
*/
20
public function get_updaters() {
21
- $updaters['json'] = 'Go_Live_Update_Urls__Updaters__JSON';
22
- $updaters = apply_filters( 'go_live_update_urls_updaters', $updaters );
23
if ( ! is_array( $updaters ) ) {
24
return array();
25
}
@@ -40,7 +41,6 @@ class Go_Live_Update_Urls__Updaters__Repo {
40
protected static $instance;
41
42
43
-
44
/**
45
* Get (and instantiate, if necessary) the instance of the
46
* class
18
* @return array
19
*/
20
public function get_updaters() {
21
+ $updaters['json'] = 'Go_Live_Update_Urls__Updaters__JSON';
22
+ $updaters['url-encoded'] = 'Go_Live_Update_Urls__Updaters__Url_Encoded';
23
+ $updaters = apply_filters( 'go_live_update_urls_updaters', $updaters );
24
if ( ! is_array( $updaters ) ) {
25
return array();
26
}
41
protected static $instance;
42
43
44
/**
45
* Get (and instantiate, if necessary) the instance of the
46
* class
src/Updaters/Url_Encoded.php ADDED
@@ -0,0 +1,24 @@
1
+ <?php
2
+
3
+ /**
4
+ * Go_Live_Update_Urls__Updaters__Url_Encoded
5
+ *
6
+ * @author Mat Lipe
7
+ * @since 5/17/2018
8
+ *
9
+ */
10
+ class Go_Live_Update_Urls__Updaters__Url_Encoded extends Go_Live_Update_Urls__Updaters__Abstract {
11
+ public function update_data() {
12
+ $old = rawurlencode( $this->old );
13
+ if ( $old === $this->old ) {
14
+ return false;
15
+ }
16
+
17
+ $new = rawurlencode( $this->new );
18
+ $this->update_column( $old, $new );
19
+
20
+ return true;
21
+ }
22
+
23
+
24
+ }