Go Live Update URLS - Version 6.2.0

Version Description

  • Redesign tools page for a modern block look.
  • Improve various verbiage.
  • Update all translations.
  • More gracefully handle version conflicts with PRO.
  • Support for PRO version 6.2.0.
Download this release

Release Info

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

Code changes from version 6.1.4 to 6.2.0

deprecated/Go_Live_Update_Urls_Database.php DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
-
3
- use Go_Live_Update_Urls\Database;
4
-
5
-
6
- //phpcs:disable
7
-
8
- /**
9
- * @deprecated Here to prevent fatal when using old PRO version.
10
- */
11
- class Go_Live_Update_Urls_Database extends Database {
12
- /**
13
- * Go_Live_Update_Urls_Database constructor.
14
- */
15
- public function __construct() {
16
- _deprecated_constructor( __CLASS__, '6.0.0', esc_html( Database::class ) );
17
- }
18
-
19
-
20
- /**
21
- * @deprecated
22
- */
23
- public static function instance() {
24
- _deprecated_function( __METHOD__, '6.0.0', esc_html( Database::class ) );
25
- if ( ! is_a( static::$instance, __CLASS__ ) ) {
26
- static::$instance = new static();
27
- }
28
- return static::$instance;
29
- }
30
- }
31
- //phpcs:enable
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
go-live-update-urls.php CHANGED
@@ -5,14 +5,14 @@
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: OnPoint Plugins
7
  * Author URI: https://onpointplugins.com/
8
- * Version: 6.1.4
9
  * Text Domain: go-live-update-urls
10
  *
11
  * @package go-live-update-urls
12
  */
13
 
14
- define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.1.4' );
15
- define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.0.0' );
16
  define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
17
 
18
  use Go_Live_Update_Urls\Admin;
@@ -31,8 +31,6 @@ use Go_Live_Update_Urls\Updates;
31
  * @return void
32
  */
33
  function go_live_update_urls_load() {
34
- require __DIR__ . '/deprecated/Go_Live_Update_Urls_Database.php';
35
-
36
  load_plugin_textdomain( 'go-live-update-urls', false, 'go-live-update-urls/languages' );
37
 
38
  Admin::init();
@@ -40,6 +38,7 @@ function go_live_update_urls_load() {
40
 
41
  if ( defined( 'GO_LIVE_UPDATE_URLS_PRO_VERSION' ) && version_compare( GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION, GO_LIVE_UPDATE_URLS_PRO_VERSION, '>' ) ) {
42
  add_action( 'admin_notices', 'go_live_update_urls_pro_plugin_notice' );
 
43
  }
44
  }
45
 
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: OnPoint Plugins
7
  * Author URI: https://onpointplugins.com/
8
+ * Version: 6.2.0
9
  * Text Domain: go-live-update-urls
10
  *
11
  * @package go-live-update-urls
12
  */
13
 
14
+ define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.2.0' );
15
+ define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.2.0' );
16
  define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
17
 
18
  use Go_Live_Update_Urls\Admin;
31
  * @return void
32
  */
33
  function go_live_update_urls_load() {
 
 
34
  load_plugin_textdomain( 'go-live-update-urls', false, 'go-live-update-urls/languages' );
35
 
36
  Admin::init();
38
 
39
  if ( defined( 'GO_LIVE_UPDATE_URLS_PRO_VERSION' ) && version_compare( GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION, GO_LIVE_UPDATE_URLS_PRO_VERSION, '>' ) ) {
40
  add_action( 'admin_notices', 'go_live_update_urls_pro_plugin_notice' );
41
+ remove_action( 'plugins_loaded', 'go_live_update_urls_pro_load', 9 );
42
  }
43
  }
44
 
languages/go-live-update-urls-de_DE.mo CHANGED
Binary file
languages/go-live-update-urls-de_DE.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Go Live Update URLS\n"
4
- "POT-Creation-Date: 2020-06-10 12:20-0600\n"
5
- "PO-Revision-Date: 2020-06-10 12:21-0600\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
  "Language: de_DE\n"
@@ -10,7 +10,7 @@ msgstr ""
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Generator: Poedit 2.3.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: go-live-update-urls.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -20,7 +20,7 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: go-live-update-urls.php:86
24
  #, php-format
25
  msgctxt "{<a>}{</a>}"
26
  msgid ""
@@ -39,82 +39,72 @@ msgid "The URLS in the checked tables have been updated."
39
  msgstr "Die URLs in den überprüften Tabellen wurden aktualisiert."
40
 
41
  #: src/Admin.php:97
42
- msgid "You must fill out both URLs and select tables to update URLs!"
 
 
43
  msgstr "Sie müssen beide URLs ausfüllen, um das Update durchzuführen!"
44
 
45
  #. Plugin Name of the plugin/theme
46
- #: src/Admin.php:130
47
  msgid "Go Live Update Urls"
48
  msgstr "Go Live Update Urls"
49
 
50
- #: src/Admin.php:140
51
- #, php-format
52
- msgctxt "{<strong>} {</strong>}"
53
  msgid ""
54
- "This will replace all occurrences %1$sin the entire database%2$s of the Old "
55
- "URL with the New URL."
56
  msgstr ""
57
- "Dadurch werden alle Vorkommen%1$sin der gesamten Datenbank%2$s der alten URL "
58
- "durch die neue URL ersetzt."
59
 
60
- #: src/Admin.php:146
61
- msgid ""
62
- "Like any other database updating tool, you should always perform a backup "
63
- "before running."
64
- msgstr ""
65
- "Wie jedes andere Datenbankaktualisierungstool sollten Sie vor dem Ausführen "
66
- "immer eine Sicherung durchführen."
67
 
68
- #: src/Admin.php:165
69
- msgid "WordPress Core Tables"
70
- msgstr "Kerntabellen"
71
 
72
- #: src/Admin.php:169
73
- msgid "These tables are safe to update with the basic version of this plugin."
74
- msgstr ""
75
- "Diese Tabellen können mit der Basisversion dieses Plugins sicher "
76
- "aktualisiert werden."
77
 
78
- #: src/Admin.php:190
79
- msgid "Tables Created By Plugins"
80
- msgstr "Tabellen erstellt von Plugins"
81
 
82
- #: src/Admin.php:196
83
  #, php-format
84
  msgctxt "{<br />}{<a>}{</a>}"
85
  msgid ""
86
- "These tables are probably NOT SAFE to update with the basic version of this "
87
- "plugin. %1$sTo support tables created by plugins use the %2$sPro Version%3$s."
88
  msgstr ""
89
- "Diese Tabellen sind wahrscheinlich NICHT SICHER, um mit der Basisversion "
90
- "dieses Plugins zu aktualisieren. %1$sUm Tabellen zu unterstützen, die von "
91
- "Plugins erstellt wurden, verwenden Sie%2$sPro Version%3$s."
92
 
93
- #: src/Admin.php:221 src/Admin.php:231
94
  msgid "Old URL"
95
  msgstr "Alte URL"
96
 
97
- #: src/Admin.php:237 src/Admin.php:247
98
  msgid "New URL"
99
  msgstr "Neue URL"
100
 
101
- #: src/Admin.php:253
102
- msgid "Only the checked tables will be updated."
103
- msgstr "Nur die überprüften Tabellen werden aktualisiert."
104
-
105
- #: src/Admin.php:263
106
  #, php-format
107
  msgctxt "{<a>}{</a>}"
108
- msgid "Use the %1$sPRO version%2$s to test the updates before making them."
109
  msgstr ""
110
- "Verwenden Sie die %1$sPRO-Version%2$s, um die Aktualisierungen zu testen, "
111
- "bevor Sie sie vornehmen."
112
 
113
- #: src/Admin.php:270
114
- msgid "Update URLs"
115
- msgstr "URLs aktualisieren"
116
 
117
- #: src/Updaters/Updaters_Abstract.php:90
118
  msgid "You must implement apply_rule_to_url with an override"
119
  msgstr ""
120
  "Sie müssen apply_rule_to_url mit einer Außerkraftsetzung implementieren"
@@ -139,6 +129,13 @@ msgstr "OnPoint Plugins"
139
  msgid "https://onpointplugins.com/"
140
  msgstr "https://onpointplugins.com/"
141
 
 
 
 
 
 
 
 
142
  #~ msgid ""
143
  #~ "OnPoint Plugins Author URI: https://onpointplugins.com/ Version: 5.3.0 "
144
  #~ "Text Domain:"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Go Live Update URLS\n"
4
+ "POT-Creation-Date: 2020-09-30 12:01-0600\n"
5
+ "PO-Revision-Date: 2020-09-30 12:01-0600\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
  "Language: de_DE\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
+ "X-Generator: Poedit 2.4.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: go-live-update-urls.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: go-live-update-urls.php:87
24
  #, php-format
25
  msgctxt "{<a>}{</a>}"
26
  msgid ""
39
  msgstr "Die URLs in den überprüften Tabellen wurden aktualisiert."
40
 
41
  #: src/Admin.php:97
42
+ msgid ""
43
+ "You must select tables and fill out both the Old URL and New URL to update "
44
+ "urls!"
45
  msgstr "Sie müssen beide URLs ausfüllen, um das Update durchzuführen!"
46
 
47
  #. Plugin Name of the plugin/theme
48
+ #: src/Admin.php:137
49
  msgid "Go Live Update Urls"
50
  msgstr "Go Live Update Urls"
51
 
52
+ #: src/Admin.php:142
 
 
53
  msgid ""
54
+ "Replaces all occurrences in the entire database of the Old URL with a New "
55
+ "URL."
56
  msgstr ""
57
+ "Ersetzt alle Vorkommen in der gesamten Datenbank der alten URL durch eine "
58
+ "neue URL."
59
 
60
+ #: src/Admin.php:156
61
+ msgid "WordPress core tables"
62
+ msgstr "WordPress Kerntabellen"
 
 
 
 
63
 
64
+ #: src/Admin.php:161
65
+ msgid "These tables are safe to update."
66
+ msgstr "Diese Tabellen können sicher aktualisiert werden."
67
 
68
+ #: src/Admin.php:170 src/Admin.php:200
69
+ msgid "Only the checked tables will be updated."
70
+ msgstr "Nur die überprüften Tabellen werden aktualisiert."
 
 
71
 
72
+ #: src/Admin.php:184
73
+ msgid "Tables created by plugins"
74
+ msgstr "Von Plugins erstellte Tabellen"
75
 
76
+ #: src/Admin.php:191
77
  #, php-format
78
  msgctxt "{<br />}{<a>}{</a>}"
79
  msgid ""
80
+ "These tables are not safe to update with the basic version of this plugin! "
81
+ "%1$sTo update tables created by plugins, use the %2$sPRO version%3$s."
82
  msgstr ""
83
+ "Diese Tabellen sind nicht sicher mit der Basisversion dieses Plugins zu "
84
+ "aktualisieren! %1$sUm Tabellen zu aktualisieren, die von Plugins erstellt "
85
+ "wurden, verwenden Sie die %2$sPRO-Version%3$s."
86
 
87
+ #: src/Admin.php:219 src/Admin.php:229
88
  msgid "Old URL"
89
  msgstr "Alte URL"
90
 
91
+ #: src/Admin.php:235 src/Admin.php:245
92
  msgid "New URL"
93
  msgstr "Neue URL"
94
 
95
+ #: src/Admin.php:258
 
 
 
 
96
  #, php-format
97
  msgctxt "{<a>}{</a>}"
98
+ msgid "Use the %1$sPRO version%2$s to test URL updates before making them."
99
  msgstr ""
100
+ "Verwenden Sie die %1$sPRO-Version%2$s, um URL-Aktualisierungen zu testen, "
101
+ "bevor Sie sie erstellen."
102
 
103
+ #: src/Admin.php:266
104
+ msgid "Update Urls"
105
+ msgstr "Urls aktualisieren"
106
 
107
+ #: src/Updaters/Updaters_Abstract.php:104
108
  msgid "You must implement apply_rule_to_url with an override"
109
  msgstr ""
110
  "Sie müssen apply_rule_to_url mit einer Außerkraftsetzung implementieren"
129
  msgid "https://onpointplugins.com/"
130
  msgstr "https://onpointplugins.com/"
131
 
132
+ #~ msgid ""
133
+ #~ "Like any other database updating tool, you should always perform a backup "
134
+ #~ "before running."
135
+ #~ msgstr ""
136
+ #~ "Wie jedes andere Datenbankaktualisierungstool sollten Sie vor dem "
137
+ #~ "Ausführen immer eine Sicherung durchführen."
138
+
139
  #~ msgid ""
140
  #~ "OnPoint Plugins Author URI: https://onpointplugins.com/ Version: 5.3.0 "
141
  #~ "Text Domain:"
languages/go-live-update-urls-es_ES.mo CHANGED
Binary file
languages/go-live-update-urls-es_ES.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Go Live Update Urls\n"
4
- "POT-Creation-Date: 2020-06-10 12:21-0600\n"
5
- "PO-Revision-Date: 2020-06-10 12:21-0600\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
  "Language: es_ES\n"
@@ -10,7 +10,7 @@ msgstr ""
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Generator: Poedit 2.3.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: go-live-update-urls.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -20,7 +20,7 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: go-live-update-urls.php:86
24
  #, php-format
25
  msgctxt "{<a>}{</a>}"
26
  msgid ""
@@ -39,82 +39,74 @@ msgid "The URLS in the checked tables have been updated."
39
  msgstr "Las URL en las tablas comprobadas se han actualizado."
40
 
41
  #: src/Admin.php:97
42
- msgid "You must fill out both URLs and select tables to update URLs!"
43
- msgstr "¡Debe completar ambas URL para hacer la actualización !"
 
 
 
 
44
 
45
  #. Plugin Name of the plugin/theme
46
- #: src/Admin.php:130
47
  msgid "Go Live Update Urls"
48
  msgstr "Go Live Update Urls"
49
 
50
- #: src/Admin.php:140
51
- #, php-format
52
- msgctxt "{<strong>} {</strong>}"
53
  msgid ""
54
- "This will replace all occurrences %1$sin the entire database%2$s of the Old "
55
- "URL with the New URL."
56
  msgstr ""
57
- "Esto reemplazará todas las ocurrencias%1$ sin toda la base de datos%2$ s de "
58
- "la URL anterior con la Nueva URL."
59
 
60
- #: src/Admin.php:146
61
- msgid ""
62
- "Like any other database updating tool, you should always perform a backup "
63
- "before running."
64
- msgstr ""
65
- "Al igual que cualquier otra herramienta de actualización de base de datos, "
66
- "siempre debe realizar una copia de seguridad antes de ejecutar."
67
 
68
- #: src/Admin.php:165
69
- msgid "WordPress Core Tables"
70
- msgstr "Tablas centrales"
71
 
72
- #: src/Admin.php:169
73
- msgid "These tables are safe to update with the basic version of this plugin."
74
- msgstr ""
75
- "Estas tablas son seguras para actualizarse con la versión básica de este "
76
- "complemento."
77
 
78
- #: src/Admin.php:190
79
- msgid "Tables Created By Plugins"
80
- msgstr "Tablas creadas por complementos"
81
 
82
- #: src/Admin.php:196
83
  #, php-format
84
  msgctxt "{<br />}{<a>}{</a>}"
85
  msgid ""
86
- "These tables are probably NOT SAFE to update with the basic version of this "
87
- "plugin. %1$sTo support tables created by plugins use the %2$sPro Version%3$s."
88
  msgstr ""
89
- "Estas tablas probablemente NO SON SEGURAS para actualizar con la versión "
90
- "básica de este complemento. %1$sPara soportar tablas creadas por plugins use"
91
- "%2$sPro Version%3$s."
92
 
93
- #: src/Admin.php:221 src/Admin.php:231
94
  msgid "Old URL"
95
  msgstr "URL antigua"
96
 
97
- #: src/Admin.php:237 src/Admin.php:247
98
  msgid "New URL"
99
  msgstr "Nueva URL"
100
 
101
- #: src/Admin.php:253
102
- msgid "Only the checked tables will be updated."
103
- msgstr "Solo las tablas comprobadas serán actualizadas."
104
-
105
- #: src/Admin.php:263
106
  #, php-format
107
  msgctxt "{<a>}{</a>}"
108
- msgid "Use the %1$sPRO version%2$s to test the updates before making them."
109
  msgstr ""
110
- "Utilice la versión %1$sPRO%2$s para probar las actualizaciones antes de "
111
  "realizarlas."
112
 
113
- #: src/Admin.php:270
114
- msgid "Update URLs"
115
- msgstr "Actualizar URL"
116
 
117
- #: src/Updaters/Updaters_Abstract.php:90
118
  msgid "You must implement apply_rule_to_url with an override"
119
  msgstr "Debe implementar apply_rule_to_url con una invalidación"
120
 
@@ -138,6 +130,13 @@ msgstr "OnPoint Plugins"
138
  msgid "https://onpointplugins.com/"
139
  msgstr "https://onpointplugins.com/"
140
 
 
 
 
 
 
 
 
141
  #~ msgid ""
142
  #~ "OnPoint Plugins Author URI: https://onpointplugins.com/ Version: 5.3.0 "
143
  #~ "Text Domain:"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Go Live Update Urls\n"
4
+ "POT-Creation-Date: 2020-09-30 12:02-0600\n"
5
+ "PO-Revision-Date: 2020-09-30 12:03-0600\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
  "Language: es_ES\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
+ "X-Generator: Poedit 2.4.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: go-live-update-urls.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: go-live-update-urls.php:87
24
  #, php-format
25
  msgctxt "{<a>}{</a>}"
26
  msgid ""
39
  msgstr "Las URL en las tablas comprobadas se han actualizado."
40
 
41
  #: src/Admin.php:97
42
+ msgid ""
43
+ "You must select tables and fill out both the Old URL and New URL to update "
44
+ "urls!"
45
+ msgstr ""
46
+ "Debe seleccionar tablas y rellenar tanto la URL antigua como la nueva URL "
47
+ "para actualizar las URL!"
48
 
49
  #. Plugin Name of the plugin/theme
50
+ #: src/Admin.php:137
51
  msgid "Go Live Update Urls"
52
  msgstr "Go Live Update Urls"
53
 
54
+ #: src/Admin.php:142
 
 
55
  msgid ""
56
+ "Replaces all occurrences in the entire database of the Old URL with a New "
57
+ "URL."
58
  msgstr ""
59
+ "Reemplaza todas las apariciones de toda la base de datos de la dirección URL "
60
+ "antigua por una nueva dirección URL."
61
 
62
+ #: src/Admin.php:156
63
+ msgid "WordPress core tables"
64
+ msgstr "Tablas principales de WordPress"
 
 
 
 
65
 
66
+ #: src/Admin.php:161
67
+ msgid "These tables are safe to update."
68
+ msgstr "Todas las tablas son seguras para actualizar."
69
 
70
+ #: src/Admin.php:170 src/Admin.php:200
71
+ msgid "Only the checked tables will be updated."
72
+ msgstr "Solo las tablas comprobadas serán actualizadas."
 
 
73
 
74
+ #: src/Admin.php:184
75
+ msgid "Tables created by plugins"
76
+ msgstr "Tablas creadas por plugins"
77
 
78
+ #: src/Admin.php:191
79
  #, php-format
80
  msgctxt "{<br />}{<a>}{</a>}"
81
  msgid ""
82
+ "These tables are not safe to update with the basic version of this plugin! "
83
+ "%1$sTo update tables created by plugins, use the %2$sPRO version%3$s."
84
  msgstr ""
85
+ "Estas tablas no son seguras para actualizar con la versión básica de este "
86
+ "plugin! %1$sPara actualizar tablas creadas por plugins, utilice la versión "
87
+ "%2$sPRO%3$s."
88
 
89
+ #: src/Admin.php:219 src/Admin.php:229
90
  msgid "Old URL"
91
  msgstr "URL antigua"
92
 
93
+ #: src/Admin.php:235 src/Admin.php:245
94
  msgid "New URL"
95
  msgstr "Nueva URL"
96
 
97
+ #: src/Admin.php:258
 
 
 
 
98
  #, php-format
99
  msgctxt "{<a>}{</a>}"
100
+ msgid "Use the %1$sPRO version%2$s to test URL updates before making them."
101
  msgstr ""
102
+ "Utilice %1$sPRO versión%2$s para probar las actualizaciones de URL antes de "
103
  "realizarlas."
104
 
105
+ #: src/Admin.php:266
106
+ msgid "Update Urls"
107
+ msgstr "Actualizar Urls"
108
 
109
+ #: src/Updaters/Updaters_Abstract.php:104
110
  msgid "You must implement apply_rule_to_url with an override"
111
  msgstr "Debe implementar apply_rule_to_url con una invalidación"
112
 
130
  msgid "https://onpointplugins.com/"
131
  msgstr "https://onpointplugins.com/"
132
 
133
+ #~ msgid ""
134
+ #~ "Like any other database updating tool, you should always perform a backup "
135
+ #~ "before running."
136
+ #~ msgstr ""
137
+ #~ "Al igual que cualquier otra herramienta de actualización de base de "
138
+ #~ "datos, siempre debe realizar una copia de seguridad antes de ejecutar."
139
+
140
  #~ msgid ""
141
  #~ "OnPoint Plugins Author URI: https://onpointplugins.com/ Version: 5.3.0 "
142
  #~ "Text Domain:"
languages/go-live-update-urls-fr_FR.mo CHANGED
Binary file
languages/go-live-update-urls-fr_FR.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Go Live Update Urls\n"
4
- "POT-Creation-Date: 2020-06-10 12:21-0600\n"
5
- "PO-Revision-Date: 2020-06-10 12:21-0600\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
@@ -10,7 +10,7 @@ msgstr ""
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
13
- "X-Generator: Poedit 2.3.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: go-live-update-urls.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -20,7 +20,7 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: go-live-update-urls.php:86
24
  #, php-format
25
  msgctxt "{<a>}{</a>}"
26
  msgid ""
@@ -39,82 +39,74 @@ msgid "The URLS in the checked tables have been updated."
39
  msgstr "Les URL dans les tables vérifiées ont été mises à jour."
40
 
41
  #: src/Admin.php:97
42
- msgid "You must fill out both URLs and select tables to update URLs!"
43
- msgstr "Vous devez remplir les deux URL pour effectuer la mise à jour!"
 
 
 
 
44
 
45
  #. Plugin Name of the plugin/theme
46
- #: src/Admin.php:130
47
  msgid "Go Live Update Urls"
48
  msgstr "Go Live Update Urls"
49
 
50
- #: src/Admin.php:140
51
- #, php-format
52
- msgctxt "{<strong>} {</strong>}"
53
  msgid ""
54
- "This will replace all occurrences %1$sin the entire database%2$s of the Old "
55
- "URL with the New URL."
56
  msgstr ""
57
- "Cela remplacera toutes les occurrences%1$sin de la base de données entière"
58
- "%2$s de l'ancienne URL avec la nouvelle URL."
59
 
60
- #: src/Admin.php:146
61
- msgid ""
62
- "Like any other database updating tool, you should always perform a backup "
63
- "before running."
64
- msgstr ""
65
- "Comme tout autre outil de mise à jour de base de données, vous devez "
66
- "toujours effectuer une sauvegarde avant de l'exécuter."
67
 
68
- #: src/Admin.php:165
69
- msgid "WordPress Core Tables"
70
- msgstr "Tables de base"
71
 
72
- #: src/Admin.php:169
73
- msgid "These tables are safe to update with the basic version of this plugin."
74
- msgstr ""
75
- "Ces tables peuvent être mises à jour en toute sécurité avec la version de "
76
- "base de ce plugin."
77
 
78
- #: src/Admin.php:190
79
- msgid "Tables Created By Plugins"
80
  msgstr "Tables créées par des plugins"
81
 
82
- #: src/Admin.php:196
83
  #, php-format
84
  msgctxt "{<br />}{<a>}{</a>}"
85
  msgid ""
86
- "These tables are probably NOT SAFE to update with the basic version of this "
87
- "plugin. %1$sTo support tables created by plugins use the %2$sPro Version%3$s."
88
  msgstr ""
89
- "Ces tableaux ne sont probablement pas sûrs de mettre à jour avec la version "
90
- "de base de ce plugin. %1$sPour prendre en charge les tables créées par les "
91
- "plugins, utilisez la version%2$sPro%3$s."
92
 
93
- #: src/Admin.php:221 src/Admin.php:231
94
  msgid "Old URL"
95
  msgstr "Ancienne URL"
96
 
97
- #: src/Admin.php:237 src/Admin.php:247
98
  msgid "New URL"
99
  msgstr "Nouvelle URL"
100
 
101
- #: src/Admin.php:253
102
- msgid "Only the checked tables will be updated."
103
- msgstr "Seules les tables vérifiées seront mises à jour."
104
-
105
- #: src/Admin.php:263
106
  #, php-format
107
  msgctxt "{<a>}{</a>}"
108
- msgid "Use the %1$sPRO version%2$s to test the updates before making them."
109
  msgstr ""
110
- "Utilisez la version %1$sPRO%2$s pour tester les mises à jour avant de les "
111
- "faire."
112
 
113
- #: src/Admin.php:270
114
- msgid "Update URLs"
115
- msgstr "Mettre à jour les URL"
116
 
117
- #: src/Updaters/Updaters_Abstract.php:90
118
  msgid "You must implement apply_rule_to_url with an override"
119
  msgstr "Vous devez mettre en œuvre apply_rule_to_url avec un remplacement"
120
 
@@ -139,6 +131,13 @@ msgstr "OnPoint Plugins"
139
  msgid "https://onpointplugins.com/"
140
  msgstr "https://onpointplugins.com/"
141
 
 
 
 
 
 
 
 
142
  #~ msgid ""
143
  #~ "OnPoint Plugins Author URI: https://onpointplugins.com/ Version: 5.3.0 "
144
  #~ "Text Domain:"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Go Live Update Urls\n"
4
+ "POT-Creation-Date: 2020-09-30 12:03-0600\n"
5
+ "PO-Revision-Date: 2020-09-30 12:03-0600\n"
6
  "Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
13
+ "X-Generator: Poedit 2.4.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: go-live-update-urls.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: go-live-update-urls.php:87
24
  #, php-format
25
  msgctxt "{<a>}{</a>}"
26
  msgid ""
39
  msgstr "Les URL dans les tables vérifiées ont été mises à jour."
40
 
41
  #: src/Admin.php:97
42
+ msgid ""
43
+ "You must select tables and fill out both the Old URL and New URL to update "
44
+ "urls!"
45
+ msgstr ""
46
+ "Vous devez sélectionner des tables et remplir à la fois l’ancienne URL et la "
47
+ "nouvelle URL pour mettre à jour les URL!"
48
 
49
  #. Plugin Name of the plugin/theme
50
+ #: src/Admin.php:137
51
  msgid "Go Live Update Urls"
52
  msgstr "Go Live Update Urls"
53
 
54
+ #: src/Admin.php:142
 
 
55
  msgid ""
56
+ "Replaces all occurrences in the entire database of the Old URL with a New "
57
+ "URL."
58
  msgstr ""
59
+ "Remplace tous les occurrences de l’ensemble de la base de données de "
60
+ "lancienne URL par une nouvelle URL."
61
 
62
+ #: src/Admin.php:156
63
+ msgid "WordPress core tables"
64
+ msgstr "Tables de base WordPress"
 
 
 
 
65
 
66
+ #: src/Admin.php:161
67
+ msgid "These tables are safe to update."
68
+ msgstr "Toutes les tables peuvent être mises à jour en toute sécurité."
69
 
70
+ #: src/Admin.php:170 src/Admin.php:200
71
+ msgid "Only the checked tables will be updated."
72
+ msgstr "Seules les tables vérifiées seront mises à jour."
 
 
73
 
74
+ #: src/Admin.php:184
75
+ msgid "Tables created by plugins"
76
  msgstr "Tables créées par des plugins"
77
 
78
+ #: src/Admin.php:191
79
  #, php-format
80
  msgctxt "{<br />}{<a>}{</a>}"
81
  msgid ""
82
+ "These tables are not safe to update with the basic version of this plugin! "
83
+ "%1$sTo update tables created by plugins, use the %2$sPRO version%3$s."
84
  msgstr ""
85
+ "Ces tables ne sont pas sûrs à mettre à jour avec la version de base de ce "
86
+ "plugin! %1$sPour mettre à jour les tables créées par les plugins, utilisez "
87
+ "la version %2$sPRO%3$s."
88
 
89
+ #: src/Admin.php:219 src/Admin.php:229
90
  msgid "Old URL"
91
  msgstr "Ancienne URL"
92
 
93
+ #: src/Admin.php:235 src/Admin.php:245
94
  msgid "New URL"
95
  msgstr "Nouvelle URL"
96
 
97
+ #: src/Admin.php:258
 
 
 
 
98
  #, php-format
99
  msgctxt "{<a>}{</a>}"
100
+ msgid "Use the %1$sPRO version%2$s to test URL updates before making them."
101
  msgstr ""
102
+ "Utilisez la version %1$sPRO%2$s pour tester les mises à jour de l’URL avant "
103
+ "de les effectuer."
104
 
105
+ #: src/Admin.php:266
106
+ msgid "Update Urls"
107
+ msgstr "Mettre à jour les Urls"
108
 
109
+ #: src/Updaters/Updaters_Abstract.php:104
110
  msgid "You must implement apply_rule_to_url with an override"
111
  msgstr "Vous devez mettre en œuvre apply_rule_to_url avec un remplacement"
112
 
131
  msgid "https://onpointplugins.com/"
132
  msgstr "https://onpointplugins.com/"
133
 
134
+ #~ msgid ""
135
+ #~ "Like any other database updating tool, you should always perform a backup "
136
+ #~ "before running."
137
+ #~ msgstr ""
138
+ #~ "Comme tout autre outil de mise à jour de base de données, vous devez "
139
+ #~ "toujours effectuer une sauvegarde avant de l'exécuter."
140
+
141
  #~ msgid ""
142
  #~ "OnPoint Plugins Author URI: https://onpointplugins.com/ Version: 5.3.0 "
143
  #~ "Text Domain:"
languages/go-live-update-urls.pot CHANGED
@@ -3,14 +3,14 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Go Live Update URLS\n"
6
- "POT-Creation-Date: 2020-06-10 12:20-0600\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.3.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: go-live-update-urls.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -20,7 +20,7 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: go-live-update-urls.php:86
24
  #, php-format
25
  msgctxt "{<a>}{</a>}"
26
  msgid ""
@@ -37,72 +37,65 @@ msgid "The URLS in the checked tables have been updated."
37
  msgstr ""
38
 
39
  #: src/Admin.php:97
40
- msgid "You must fill out both URLs and select tables to update URLs!"
 
 
41
  msgstr ""
42
 
43
  #. Plugin Name of the plugin/theme
44
- #: src/Admin.php:130
45
  msgid "Go Live Update Urls"
46
  msgstr ""
47
 
48
- #: src/Admin.php:140
49
- #, php-format
50
- msgctxt "{<strong>} {</strong>}"
51
  msgid ""
52
- "This will replace all occurrences %1$sin the entire database%2$s of the Old "
53
- "URL with the New URL."
54
  msgstr ""
55
 
56
- #: src/Admin.php:146
57
- msgid ""
58
- "Like any other database updating tool, you should always perform a backup "
59
- "before running."
60
  msgstr ""
61
 
62
- #: src/Admin.php:165
63
- msgid "WordPress Core Tables"
64
  msgstr ""
65
 
66
- #: src/Admin.php:169
67
- msgid "These tables are safe to update with the basic version of this plugin."
68
  msgstr ""
69
 
70
- #: src/Admin.php:190
71
- msgid "Tables Created By Plugins"
72
  msgstr ""
73
 
74
- #: src/Admin.php:196
75
  #, php-format
76
  msgctxt "{<br />}{<a>}{</a>}"
77
  msgid ""
78
- "These tables are probably NOT SAFE to update with the basic version of this "
79
- "plugin. %1$sTo support tables created by plugins use the %2$sPro Version"
80
- "%3$s."
81
  msgstr ""
82
 
83
- #: src/Admin.php:221 src/Admin.php:231
84
  msgid "Old URL"
85
  msgstr ""
86
 
87
- #: src/Admin.php:237 src/Admin.php:247
88
  msgid "New URL"
89
  msgstr ""
90
 
91
- #: src/Admin.php:253
92
- msgid "Only the checked tables will be updated."
93
- msgstr ""
94
-
95
- #: src/Admin.php:263
96
  #, php-format
97
  msgctxt "{<a>}{</a>}"
98
- msgid "Use the %1$sPRO version%2$s to test the updates before making them."
99
  msgstr ""
100
 
101
- #: src/Admin.php:270
102
- msgid "Update URLs"
103
  msgstr ""
104
 
105
- #: src/Updaters/Updaters_Abstract.php:90
106
  msgid "You must implement apply_rule_to_url with an override"
107
  msgstr ""
108
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Go Live Update URLS\n"
6
+ "POT-Creation-Date: 2020-09-30 12:02-0600\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.4.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: go-live-update-urls.php\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: go-live-update-urls.php:87
24
  #, php-format
25
  msgctxt "{<a>}{</a>}"
26
  msgid ""
37
  msgstr ""
38
 
39
  #: src/Admin.php:97
40
+ msgid ""
41
+ "You must select tables and fill out both the Old URL and New URL to update "
42
+ "urls!"
43
  msgstr ""
44
 
45
  #. Plugin Name of the plugin/theme
46
+ #: src/Admin.php:137
47
  msgid "Go Live Update Urls"
48
  msgstr ""
49
 
50
+ #: src/Admin.php:142
 
 
51
  msgid ""
52
+ "Replaces all occurrences in the entire database of the Old URL with a New "
53
+ "URL."
54
  msgstr ""
55
 
56
+ #: src/Admin.php:156
57
+ msgid "WordPress core tables"
 
 
58
  msgstr ""
59
 
60
+ #: src/Admin.php:161
61
+ msgid "These tables are safe to update."
62
  msgstr ""
63
 
64
+ #: src/Admin.php:170 src/Admin.php:200
65
+ msgid "Only the checked tables will be updated."
66
  msgstr ""
67
 
68
+ #: src/Admin.php:184
69
+ msgid "Tables created by plugins"
70
  msgstr ""
71
 
72
+ #: src/Admin.php:191
73
  #, php-format
74
  msgctxt "{<br />}{<a>}{</a>}"
75
  msgid ""
76
+ "These tables are not safe to update with the basic version of this plugin! "
77
+ "%1$sTo update tables created by plugins, use the %2$sPRO version%3$s."
 
78
  msgstr ""
79
 
80
+ #: src/Admin.php:219 src/Admin.php:229
81
  msgid "Old URL"
82
  msgstr ""
83
 
84
+ #: src/Admin.php:235 src/Admin.php:245
85
  msgid "New URL"
86
  msgstr ""
87
 
88
+ #: src/Admin.php:258
 
 
 
 
89
  #, php-format
90
  msgctxt "{<a>}{</a>}"
91
+ msgid "Use the %1$sPRO version%2$s to test URL updates before making them."
92
  msgstr ""
93
 
94
+ #: src/Admin.php:266
95
+ msgid "Update Urls"
96
  msgstr ""
97
 
98
+ #: src/Updaters/Updaters_Abstract.php:104
99
  msgid "You must implement apply_rule_to_url with an override"
100
  msgstr ""
101
 
readme.txt CHANGED
@@ -5,15 +5,15 @@ Tags: urls, launching, site changes, tools, domain, domains, domain changes, url
5
  Requires at least: 4.8.0
6
  Tested up to: 5.5.1
7
  Requires PHP: 5.6.0
8
- Stable tag: 6.1.4
9
 
10
  == Description ==
11
 
12
  Goes through entire site and replaces all instances of an old url with a new one. Used to change the domain of a site. Works on both multi-site and single site installs.
13
 
14
- <strong>Check out <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">Go Live Update Urls PRO</a> for more features including support for tables created by plugins, the ability to test a URL before updating, update history, priority support, and so much more!</strong>
15
 
16
- <blockquote><a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">Pro version 6.1.1</a> is now available with a greatly improved testing and updating experience!</blockquote>
17
 
18
 
19
  <h3>Features</h3>
@@ -36,15 +36,16 @@ Goes through entire site and replaces all instances of an old url with a new one
36
  <h3>Pro Features</h3>
37
  * Updates database tables created by plugins without fear of breaking.
38
  * Database tables are organized into simple intuitive sections.
 
39
  * Updates serialized data across any table.
40
  * Updates JSON data across any table.
41
- * Improved admin page.
42
  * Ability to test URL changes before running them.
43
  * URL testing report is provided for peace of mind.
44
  * Option to fix common mistakes automatically when entering a URL.
45
- * iew and use history of your site's address.
46
  * Predictive URLs automatically fill in the "Old URL" and "New URL.".
47
- * Ability to choose between a full table or sections.
 
48
  * WP-CLI support for updating URLs from the command line.
49
  * Priority Support with access to members only support area.
50
 
@@ -95,9 +96,18 @@ If you wish to try to update tables mentioned as "not safe" anyway, you may make
95
 
96
  == Screenshots ==
97
 
98
- 1. Typical settings page. The verbiage will change slightly depending on your database structure.
 
 
99
 
100
  == Changelog ==
 
 
 
 
 
 
 
101
  = 6.1.4 =
102
  * Support updating `registration_log` and `signups` tables.
103
  * Make `get_doubled_up_subdomain` method public.
5
  Requires at least: 4.8.0
6
  Tested up to: 5.5.1
7
  Requires PHP: 5.6.0
8
+ Stable tag: 6.2.0
9
 
10
  == Description ==
11
 
12
  Goes through entire site and replaces all instances of an old url with a new one. Used to change the domain of a site. Works on both multi-site and single site installs.
13
 
14
+ <strong>Check out <a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">Go Live Update Urls PRO</a> for more features including support for tables created by plugins, the ability to test a URL before updating, update history, real time reporting, priority support, and so much more!</strong>
15
 
16
+ <blockquote><a href=" https://onpointplugins.com/go-live-update-urls/go-live-update-urls-pro-usage/#url-counting" target="_blank">Pro version 6.2.0</a> is now available with real time reporting of urls which will be and were updated!</blockquote>
17
 
18
 
19
  <h3>Features</h3>
36
  <h3>Pro Features</h3>
37
  * Updates database tables created by plugins without fear of breaking.
38
  * Database tables are organized into simple intuitive sections.
39
+ * Ability to choose between a full table or sections.
40
  * Updates serialized data across any table.
41
  * Updates JSON data across any table.
 
42
  * Ability to test URL changes before running them.
43
  * URL testing report is provided for peace of mind.
44
  * Option to fix common mistakes automatically when entering a URL.
45
+ * View and use history of your site's address.
46
  * Predictive URLs automatically fill in the "Old URL" and "New URL.".
47
+ * Real time reporting of count and location of urls which will be updated. **NEW**
48
+ * Report of count and location of urls which were updated. **NEW**
49
  * WP-CLI support for updating URLs from the command line.
50
  * Priority Support with access to members only support area.
51
 
96
 
97
  == Screenshots ==
98
 
99
+ 1. Tools page. The list of tables will changed depending on your database structure.
100
+ 2. Successfully updated urls.
101
+ 3. Update prevented due to incomplete data entered.
102
 
103
  == Changelog ==
104
+ = 6.2.0 =
105
+ * Redesign tools page for a modern block look.
106
+ * Improve various verbiage.
107
+ * Update all translations.
108
+ * More gracefully handle version conflicts with PRO.
109
+ * Support for PRO version 6.2.0.
110
+
111
  = 6.1.4 =
112
  * Support updating `registration_log` and `signups` tables.
113
  * Make `get_doubled_up_subdomain` method public.
resources/.stylelintrc ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "extends": [
3
+ "../../go-live-update-urls-pro/js/node_modules/stylelint-config-wordpress"
4
+ ],
5
+ "rules": {
6
+ "function-parentheses-space-inside": null,
7
+ "indentation": "tab",
8
+ "no-invalid-double-slash-comments": null,
9
+ "number-leading-zero": null,
10
+ "property-no-unknown": [
11
+ true,
12
+ {
13
+ "ignoreProperties": [
14
+ "/\/\//",
15
+ "/^composes/"
16
+ ]
17
+ }
18
+ ],
19
+ "rule-empty-line-before": [
20
+ "always",
21
+ {
22
+ "ignore": [
23
+ "after-comment",
24
+ "first-nested"
25
+ ]
26
+ }
27
+ ],
28
+ "selector-pseudo-class-no-unknown": [
29
+ true,
30
+ {
31
+ "ignorePseudoClasses": [
32
+ "global"
33
+ ]
34
+ }
35
+ ],
36
+ "string-quotes": null
37
+ }
38
+ }
resources/go-live-update-urls.css ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #wpcontent {
2
+ padding-left: 0 !important;
3
+ }
4
+
5
+ .update-nag,
6
+ .notice,
7
+ div.updated,
8
+ div.error {
9
+ margin-bottom: 25px;
10
+ margin-left: 15px;
11
+ }
12
+
13
+ .update-nag {
14
+ margin-top: 0;
15
+ }
16
+
17
+ .go-live-header-wrap {
18
+ text-align: center;
19
+ margin: 0 0 30px;
20
+ background: #fff;
21
+ border-bottom: 1px solid #e2e4e7;
22
+ padding: 10px 0 0 0;
23
+ }
24
+
25
+ .go-live-header-wrap h1::before {
26
+ color: #02657a;
27
+ font-size: 40px;
28
+ margin: -8px 25px 0 -25px;
29
+ }
30
+
31
+ .go-live-header-wrap a {
32
+ line-height: 1.1;
33
+ font-weight: 600;
34
+ font-size: 23px;
35
+ color: #23282d;
36
+ text-decoration: none;
37
+ }
38
+
39
+ .go-live-header-message {
40
+ font-weight: 600;
41
+ line-height: 20px;
42
+ margin: 0 10px 20px;
43
+ }
44
+
45
+ .go-live-checkbox-form {
46
+ max-width: 800px;
47
+ margin: 0 auto;
48
+ }
49
+
50
+ .go-live-checkbox-form h3 {
51
+ padding: 0;
52
+ font-weight: 400;
53
+ color: #23282d;
54
+ font-size: 1.3em;
55
+ margin: 1em 0;
56
+ }
57
+
58
+ .go-live-section {
59
+ margin: 15px 0;
60
+ background: #fff;
61
+ padding: 20px;
62
+ border: 1px solid #ccd0d4;
63
+ display: block;
64
+ }
65
+
66
+ .go-live-only-checked {
67
+ padding: 1px 0 0;
68
+ color: #666;
69
+ font-weight: 600;
70
+ display: inline-block;
71
+ position: relative;
72
+ top: 2px;
73
+ }
74
+
75
+ .go-live-checkbox-form th {
76
+ width: 75px;
77
+ padding-right: 0;
78
+ }
79
+
80
+
81
+ @media only screen and (max-width: 1004px) {
82
+ .go-live-checkbox-form {
83
+ margin: 0 22px;
84
+ width: auto;
85
+ }
86
+ }
resources/{js/admin-page.js → go-live-update-urls.js} RENAMED
File without changes
src/Admin.php CHANGED
@@ -5,7 +5,7 @@ namespace Go_Live_Update_Urls;
5
  use Go_Live_Update_Urls\Traits\Singleton;
6
 
7
  /**
8
- * Tools Page in WordPress Admin.
9
  *
10
  * @author OnPoint Plugins
11
  * @since 6.0.0
@@ -13,8 +13,6 @@ use Go_Live_Update_Urls\Traits\Singleton;
13
  class Admin {
14
  use Singleton;
15
 
16
- const FORM_WRAP = 'go-live-update-urls/admin/form';
17
- const INPUTS_WRAP = 'go-live-update-urls/admin/url-fields';
18
  const OLD_URL = 'old_url';
19
  const NEW_URL = 'new_url';
20
  const NONCE = 'go-live-update-urls/nonce/update-tables';
@@ -96,7 +94,7 @@ class Admin {
96
  <div id="message" class="error fade">
97
  <p>
98
  <strong>
99
- <?php esc_html_e( 'You must fill out both URLs and select tables to update URLs!', 'go-live-update-urls' ); ?>
100
  </strong>
101
  </p>
102
  </div>
@@ -124,41 +122,29 @@ class Admin {
124
  * @since 5.0.0
125
  */
126
  public function admin_page() {
127
- wp_enqueue_script( 'go-live-update-urls-admin-page', GO_LIVE_UPDATE_URLS_URL . 'resources/js/admin-page.js', [ 'jquery' ], GO_LIVE_UPDATE_URLS_VERSION, true );
 
128
 
129
  ?>
130
- <div id="go-live-update-urls/admin-page" class="wrap">
131
- <h2>
132
- <?php esc_html_e( 'Go Live Update Urls', 'go-live-update-urls' ); ?>
133
- </h2>
134
-
135
- <?php
136
- if ( ! apply_filters( 'go-live-update-urls/views/admin-tools-page/disable-description', false ) ) {
137
- ?>
138
-
139
- <p class="description">
140
- <?php
141
- /* translators: <strong></strong> */
142
- printf( esc_html_x( 'This will replace all occurrences %1$sin the entire database%2$s of the Old URL with the New URL.', '{<strong>} {</strong>}', 'go-live-update-urls' ), '<strong>', '</strong>' );
143
- ?>
144
- </p>
145
-
146
- <strong>
147
- <em style="color:red">
148
- <?php esc_html_e( 'Like any other database updating tool, you should always perform a backup before running.', 'go-live-update-urls' ); ?>
149
- </em>
150
- </strong>
151
- <br /><br />
152
- <hr />
153
-
154
- <?php
155
- }
156
- ?>
157
-
158
  <form
159
  method="post"
160
- class="go-live-update-urls/admin/checkbox-form"
161
- data-js="<?php echo esc_attr( static::FORM_WRAP ); ?>">
162
  <?php
163
  wp_nonce_field( self::NONCE, self::NONCE );
164
 
@@ -166,62 +152,69 @@ class Admin {
166
 
167
  if ( apply_filters( 'go-live-update-urls-pro/admin/use-default-checkboxes', true ) ) {
168
  ?>
169
- <h2>
170
- <?php esc_html_e( 'WordPress Core Tables', 'go-live-update-urls' ); ?>
171
- </h2>
172
- <p class="description" style="color:green">
173
- <strong>
174
- <?php esc_attr_e( 'These tables are safe to update with the basic version of this plugin.', 'go-live-update-urls' ); ?>
175
- </strong>
176
- </p>
177
- <p>
178
- <input
179
- type="checkbox"
180
- class="go-live-update-urls/checkboxes/check-all"
181
- data-list="wp-core"
182
- data-js="go-live-update-urls/checkboxes/check-all"
183
- checked
184
- />
185
- </p>
186
- <hr />
187
- <?php
188
- $this->render_check_boxes( Database::instance()->get_core_tables(), 'wp-core' );
189
- $custom_tables = Database::instance()->get_custom_plugin_tables();
190
- if ( ! empty( $custom_tables ) ) {
191
- ?>
192
- <hr />
193
-
194
- <h2>
195
- <?php esc_html_e( 'Tables Created By Plugins', 'go-live-update-urls' ); ?>
196
- </h2>
197
- <p class="description" style="color:red">
198
  <strong>
199
- <?php
200
- /* translators: <br /> <a> </a> */
201
- printf( esc_html_x( 'These tables are probably NOT SAFE to update with the basic version of this plugin. %1$sTo support tables created by plugins use the %2$sPro Version%3$s.', '{<br />}{<a>}{</a>}', 'go-live-update-urls' ), '<br />', '<a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">', '</a>' );
202
- ?>
203
  </strong>
204
  </p>
205
  <p>
206
  <input
207
  type="checkbox"
208
- class="go-live-update-urls/checkboxes/check-all"
209
- data-list="custom-plugins"
210
- data-js="go-live-update-urls/checkboxes/check-all" />
 
211
  </p>
212
  <hr />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  <?php
214
- $this->render_check_boxes( $custom_tables, 'custom-plugins', false );
215
  }
216
  }
217
 
218
  do_action( 'go-live-update-urls-pro/admin/after-checkboxes', Database::instance() );
219
 
220
  ?>
221
- <hr />
222
- <table class="form-table" data-js="<?php echo esc_attr( static::INPUTS_WRAP ); ?>">
223
  <tr>
224
- <th scope="row" style="width:150px;">
225
  <label for="old_url">
226
  <?php esc_html_e( 'Old URL', 'go-live-update-urls' ); ?>
227
  </label>
@@ -232,12 +225,12 @@ class Admin {
232
  type="text"
233
  id="old_url"
234
  value=""
235
- style="width:300px;"
236
  title="<?php esc_attr_e( 'Old URL', 'go-live-update-urls' ); ?>" />
237
  </td>
238
  </tr>
239
  <tr>
240
- <th scope="row" style="width:150px;">
241
  <label for="new_url">
242
  <?php esc_attr_e( 'New URL', 'go-live-update-urls' ); ?>
243
  </label>
@@ -248,7 +241,7 @@ class Admin {
248
  type="text"
249
  id="new_url"
250
  value=""
251
- style="width:300px;"
252
  title="<?php esc_attr_e( 'New URL', 'go-live-update-urls' ); ?>" />
253
  </td>
254
  </tr>
@@ -259,21 +252,18 @@ class Admin {
259
  ?>
260
  <p class="description">
261
  <strong>
262
- <?php esc_html_e( 'Only the checked tables will be updated.', 'go-live-update-urls' ); ?>
263
- </strong>
264
- </p>
265
- <p class="description" style="color:#23282d">
266
- <strong>
267
- <?php
268
- /* translators: <a></a> */
269
- printf( esc_html_x( 'Use the %1$sPRO version%2$s to test the updates before making them.', '{<a>}{</a>}', 'go-live-update-urls' ), '<a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">', '</a>' );
270
- ?>
271
  </strong>
272
  </p>
273
  <?php
274
  }
275
  ?>
276
- <?php submit_button( __( 'Update URLs', 'go-live-update-urls' ), 'primary', self::SUBMIT ); ?>
277
  </form>
278
  </div>
279
  <?php
@@ -294,7 +284,6 @@ class Admin {
294
  public function render_check_boxes( $tables, $list, $checked = true ) {
295
  ?>
296
  <ul
297
- class="go-live-update-urls/checkboxes go-live-update-urls/checkboxes/<?php echo esc_attr( $list ); ?>"
298
  data-list="<?php echo esc_attr( $list ); ?>">
299
  <?php
300
  foreach ( $tables as $_table ) {
5
  use Go_Live_Update_Urls\Traits\Singleton;
6
 
7
  /**
8
+ * Tools page in WordPress admin.
9
  *
10
  * @author OnPoint Plugins
11
  * @since 6.0.0
13
  class Admin {
14
  use Singleton;
15
 
 
 
16
  const OLD_URL = 'old_url';
17
  const NEW_URL = 'new_url';
18
  const NONCE = 'go-live-update-urls/nonce/update-tables';
94
  <div id="message" class="error fade">
95
  <p>
96
  <strong>
97
+ <?php esc_html_e( 'You must select tables and fill out both the Old URL and New URL to update urls!', 'go-live-update-urls' ); ?>
98
  </strong>
99
  </p>
100
  </div>
122
  * @since 5.0.0
123
  */
124
  public function admin_page() {
125
+ wp_enqueue_script( 'go-live-update-urls/admin/admin-page/js', GO_LIVE_UPDATE_URLS_URL . 'resources/go-live-update-urls.js', [ 'jquery' ], GO_LIVE_UPDATE_URLS_VERSION, true );
126
+ \wp_enqueue_style( 'go-live-update-urls/admin/admin-page/css', GO_LIVE_UPDATE_URLS_URL . 'resources/go-live-update-urls.css', [], GO_LIVE_UPDATE_URLS_VERSION );
127
 
128
  ?>
129
+ <div id="go-live-update-urls/admin-page">
130
+ <div class="go-live-header-wrap">
131
+ <div>
132
+ <h1 class="dashicons-before dashicons-update">
133
+ <a
134
+ href="https://wordpress.org/plugins/go-live-update-urls/"
135
+ target="_blank"
136
+ rel="noopener noreferrer">
137
+ <?php esc_html_e( 'Go Live Update Urls', 'go-live-update-urls' ); ?>
138
+ </a>
139
+ </h1>
140
+ </div>
141
+ <div class="go-live-header-message">
142
+ <?php esc_html_e( 'Replaces all occurrences in the entire database of the Old URL with a New URL.', 'go-live-update-urls' ); ?>
143
+ </div>
144
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
145
  <form
146
  method="post"
147
+ class="go-live-checkbox-form">
 
148
  <?php
149
  wp_nonce_field( self::NONCE, self::NONCE );
150
 
152
 
153
  if ( apply_filters( 'go-live-update-urls-pro/admin/use-default-checkboxes', true ) ) {
154
  ?>
155
+ <h3>
156
+ <?php esc_html_e( 'WordPress core tables', 'go-live-update-urls' ); ?>
157
+ </h3>
158
+ <div class="go-live-section">
159
+ <p class="description" style="color:green">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  <strong>
161
+ <?php esc_attr_e( 'These tables are safe to update.', 'go-live-update-urls' ); ?>
 
 
 
162
  </strong>
163
  </p>
164
  <p>
165
  <input
166
  type="checkbox"
167
+ data-list="wp-core"
168
+ data-js="go-live-update-urls/checkboxes/check-all"
169
+ checked
170
+ /> <span class="go-live-only-checked"><?php esc_html_e( 'Only the checked tables will be updated.', 'go-live-update-urls' ); ?></span>
171
  </p>
172
  <hr />
173
+
174
+ <?php
175
+ $this->render_check_boxes( Database::instance()->get_core_tables(), 'wp-core' );
176
+ ?>
177
+ </div>
178
+ <?php
179
+
180
+ $custom_tables = Database::instance()->get_custom_plugin_tables();
181
+ if ( ! empty( $custom_tables ) ) {
182
+ ?>
183
+ <h3>
184
+ <?php esc_html_e( 'Tables created by plugins', 'go-live-update-urls' ); ?>
185
+ </h3>
186
+ <div class="go-live-section">
187
+ <p class="description" style="color:red">
188
+ <strong>
189
+ <?php
190
+ /* translators: <br /> <a> </a> */
191
+ printf( esc_html_x( 'These tables are not safe to update with the basic version of this plugin! %1$sTo update tables created by plugins, use the %2$sPRO version%3$s.', '{<br />}{<a>}{</a>}', 'go-live-update-urls' ), '<br />', '<a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">', '</a>' );
192
+ ?>
193
+ </strong>
194
+ </p>
195
+ <p>
196
+ <input
197
+ type="checkbox"
198
+ data-list="custom-plugins"
199
+ data-js="go-live-update-urls/checkboxes/check-all" />
200
+ <span class="go-live-only-checked"><?php esc_html_e( 'Only the checked tables will be updated.', 'go-live-update-urls' ); ?></span>
201
+ </p>
202
+ <hr />
203
+
204
+ <?php
205
+ $this->render_check_boxes( $custom_tables, 'custom-plugins', false );
206
+ ?>
207
+ </div>
208
  <?php
 
209
  }
210
  }
211
 
212
  do_action( 'go-live-update-urls-pro/admin/after-checkboxes', Database::instance() );
213
 
214
  ?>
215
+ <table class="form-table">
 
216
  <tr>
217
+ <th scope="row">
218
  <label for="old_url">
219
  <?php esc_html_e( 'Old URL', 'go-live-update-urls' ); ?>
220
  </label>
225
  type="text"
226
  id="old_url"
227
  value=""
228
+ class="regular-text"
229
  title="<?php esc_attr_e( 'Old URL', 'go-live-update-urls' ); ?>" />
230
  </td>
231
  </tr>
232
  <tr>
233
+ <th scope="row">
234
  <label for="new_url">
235
  <?php esc_attr_e( 'New URL', 'go-live-update-urls' ); ?>
236
  </label>
241
  type="text"
242
  id="new_url"
243
  value=""
244
+ class="regular-text"
245
  title="<?php esc_attr_e( 'New URL', 'go-live-update-urls' ); ?>" />
246
  </td>
247
  </tr>
252
  ?>
253
  <p class="description">
254
  <strong>
255
+
256
+ <?php
257
+ /* translators: <a></a> */
258
+ printf( esc_html_x( 'Use the %1$sPRO version%2$s to test URL updates before making them.', '{<a>}{</a>}', 'go-live-update-urls' ), '<a href="https://onpointplugins.com/product/go-live-update-urls-pro/" target="_blank">', '</a>' );
259
+ ?>
260
+
 
 
 
261
  </strong>
262
  </p>
263
  <?php
264
  }
265
  ?>
266
+ <?php submit_button( __( 'Update Urls', 'go-live-update-urls' ), 'primary', self::SUBMIT ); ?>
267
  </form>
268
  </div>
269
  <?php
284
  public function render_check_boxes( $tables, $list, $checked = true ) {
285
  ?>
286
  <ul
 
287
  data-list="<?php echo esc_attr( $list ); ?>">
288
  <?php
289
  foreach ( $tables as $_table ) {