Changeset 3159918
- Timestamp:
- 09/30/2024 02:40:01 PM (18 months ago)
- Location:
- go-live-update-urls
- Files:
-
- 18 edited
- 1 copied
-
tags/7.0.0 (copied) (copied from go-live-update-urls/trunk)
-
tags/7.0.0/go-live-update-urls.php (modified) (2 diffs)
-
tags/7.0.0/languages/go-live-update-urls-de_DE.l10n.php (modified) (1 diff)
-
tags/7.0.0/languages/go-live-update-urls-es_ES.l10n.php (modified) (1 diff)
-
tags/7.0.0/languages/go-live-update-urls-fr_FR.l10n.php (modified) (1 diff)
-
tags/7.0.0/readme.txt (modified) (2 diffs)
-
tags/7.0.0/src/Admin.php (modified) (3 diffs)
-
tags/7.0.0/src/Core.php (modified) (1 diff)
-
tags/7.0.0/src/Database.php (modified) (4 diffs)
-
tags/7.0.0/src/Skip_Rows.php (modified) (2 diffs)
-
trunk/go-live-update-urls.php (modified) (2 diffs)
-
trunk/languages/go-live-update-urls-de_DE.l10n.php (modified) (1 diff)
-
trunk/languages/go-live-update-urls-es_ES.l10n.php (modified) (1 diff)
-
trunk/languages/go-live-update-urls-fr_FR.l10n.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Admin.php (modified) (3 diffs)
-
trunk/src/Core.php (modified) (1 diff)
-
trunk/src/Database.php (modified) (4 diffs)
-
trunk/src/Skip_Rows.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
go-live-update-urls/tags/7.0.0/go-live-update-urls.php
r3120664 r3159918 6 6 * Author: OnPoint Plugins 7 7 * Author URI: https://onpointplugins.com 8 * Version: 6.8.08 * Version: 7.0.0 9 9 * Text Domain: go-live-update-urls 10 10 * Domain Path: /languages/ … … 16 16 */ 17 17 18 define( 'GO_LIVE_UPDATE_URLS_VERSION', ' 6.8.0' );19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', ' 6.13.0' );18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.0' ); 19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.0' ); 20 20 define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) ); 21 21 -
go-live-update-urls/tags/7.0.0/languages/go-live-update-urls-de_DE.l10n.php
r3120664 r3159918 1 1 <?php 2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n != 1);',' messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls erfordert %1$sGo Live Update Urls PRO %3$s+%2$s. Bitte aktualisieren oder deaktivieren Sie die PRO-Version.','Ouch! That hurt! You should not be here!'=>'Autsch! Das tut weh! Du solltest nicht hier sein!','The urls in the checked tables have been updated.'=>'Die URLs in den überprüften Tabellen wurden aktualisiert.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Sie müssen beide URLs ausfüllen, um das Update durchzuführen!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Ersetzt alle Vorkommen in der gesamten Datenbank der alten URL durch eine neue URL.','WordPress core tables'=>'WordPress Kerntabellen','These tables are safe to update.'=>'Diese Tabellen können sicher aktualisiert werden.','Only the checked tables will be updated.'=>'Nur die überprüften Tabellen werden aktualisiert.','Tables created by plugins'=>'Von Plugins erstellte Tabellen','{<br />}{<a>}{</a>}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.'=>'Diese Tabellen sind nicht sicher mit der Basisversion dieses Plugins zu aktualisieren! %1$sUm Tabellen zu aktualisieren, die von Plugins erstellt wurden, verwenden Sie die %2$sPRO-Version%3$s.','Old URL'=>'Alte URL','New URL'=>'Neue URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Verwenden Sie die %1$sPRO-Version%2$s, um URL-Aktualisierungen zu testen, bevor Sie sie erstellen.','Update Urls'=>'Urls aktualisieren','Settings'=>'Einstellungen','Go PRO'=>'Gehen Sie PRO','You must set a table and DB id before skipping a row.'=>'','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Aktualisiert jede URL auf Ihrer Website, wenn sie live geht oder die Domain wechselt.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com'],'language'=>'de_DE','x-generator'=>'Poedit 2.4.3'];2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'de_DE','project-id-version'=>'Go Live Update URLS','pot-creation-date'=>'2024-07-10 14:10-0400','po-revision-date'=>'2024-07-10 14:10-0400','x-generator'=>'Poedit 2.4.3','messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls erfordert %1$sGo Live Update Urls PRO %3$s+%2$s. Bitte aktualisieren oder deaktivieren Sie die PRO-Version.','Ouch! That hurt! You should not be here!'=>'Autsch! Das tut weh! Du solltest nicht hier sein!','The urls in the checked tables have been updated.'=>'Die URLs in den überprüften Tabellen wurden aktualisiert.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Sie müssen beide URLs ausfüllen, um das Update durchzuführen!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Ersetzt alle Vorkommen in der gesamten Datenbank der alten URL durch eine neue URL.','WordPress core tables'=>'WordPress Kerntabellen','These tables are safe to update.'=>'Diese Tabellen können sicher aktualisiert werden.','Only the checked tables will be updated.'=>'Nur die überprüften Tabellen werden aktualisiert.','Tables created by plugins'=>'Von Plugins erstellte Tabellen','{<br />}{<a>}{</a>}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.'=>'Diese Tabellen sind nicht sicher mit der Basisversion dieses Plugins zu aktualisieren! %1$sUm Tabellen zu aktualisieren, die von Plugins erstellt wurden, verwenden Sie die %2$sPRO-Version%3$s.','Old URL'=>'Alte URL','New URL'=>'Neue URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Verwenden Sie die %1$sPRO-Version%2$s, um URL-Aktualisierungen zu testen, bevor Sie sie erstellen.','Update Urls'=>'Urls aktualisieren','Settings'=>'Einstellungen','Go PRO'=>'Gehen Sie PRO','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Aktualisiert jede URL auf Ihrer Website, wenn sie live geht oder die Domain wechselt.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com']]; -
go-live-update-urls/tags/7.0.0/languages/go-live-update-urls-es_ES.l10n.php
r3120664 r3159918 1 1 <?php 2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n != 1);',' messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls requiere %1$sGo Live Update Urls PRO %3$s+%2$s. Actualice o desactive la versión PRO.','Ouch! That hurt! You should not be here!'=>'¡Ay! ¡Eso duele! ¡No deberías estar aquí!','The urls in the checked tables have been updated.'=>'Las URL en las tablas comprobadas se han actualizado.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Debe seleccionar tablas y rellenar tanto la URL antigua como la nueva URL para actualizar las URL!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Reemplaza todas las apariciones de toda la base de datos de la dirección URL antigua por una nueva dirección URL.','WordPress core tables'=>'Tablas principales de WordPress','These tables are safe to update.'=>'Todas las tablas son seguras para actualizar.','Only the checked tables will be updated.'=>'Solo las tablas comprobadas serán actualizadas.','Tables created by plugins'=>'Tablas creadas por plugins','{<br />}{<a>}{</a>}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.'=>'Estas tablas no son seguras para actualizar con la versión básica de este plugin! %1$sPara actualizar tablas creadas por plugins, utilice la versión %2$sPRO%3$s.','Old URL'=>'URL antigua','New URL'=>'Nueva URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Utilice %1$sPRO versión%2$s para probar las actualizaciones de URL antes de realizarlas.','Update Urls'=>'Actualizar Urls','Settings'=>'Ajustes','Go PRO'=>'Actualizar a PRO','You must set a table and DB id before skipping a row.'=>'','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Actualiza todas las URL de tu sitio cuando se publica o se cambia de dominio.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com'],'language'=>'es_ES','x-generator'=>'Poedit 2.4.3'];2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'es_ES','project-id-version'=>'Go Live Update Urls','pot-creation-date'=>'2024-07-10 14:05-0400','po-revision-date'=>'2024-07-10 14:05-0400','x-generator'=>'Poedit 2.4.3','messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls requiere %1$sGo Live Update Urls PRO %3$s+%2$s. Actualice o desactive la versión PRO.','Ouch! That hurt! You should not be here!'=>'¡Ay! ¡Eso duele! ¡No deberías estar aquí!','The urls in the checked tables have been updated.'=>'Las URL en las tablas comprobadas se han actualizado.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Debe seleccionar tablas y rellenar tanto la URL antigua como la nueva URL para actualizar las URL!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Reemplaza todas las apariciones de toda la base de datos de la dirección URL antigua por una nueva dirección URL.','WordPress core tables'=>'Tablas principales de WordPress','These tables are safe to update.'=>'Todas las tablas son seguras para actualizar.','Only the checked tables will be updated.'=>'Solo las tablas comprobadas serán actualizadas.','Tables created by plugins'=>'Tablas creadas por plugins','{<br />}{<a>}{</a>}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.'=>'Estas tablas no son seguras para actualizar con la versión básica de este plugin! %1$sPara actualizar tablas creadas por plugins, utilice la versión %2$sPRO%3$s.','Old URL'=>'URL antigua','New URL'=>'Nueva URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Utilice %1$sPRO versión%2$s para probar las actualizaciones de URL antes de realizarlas.','Update Urls'=>'Actualizar Urls','Settings'=>'Ajustes','Go PRO'=>'Actualizar a PRO','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Actualiza todas las URL de tu sitio cuando se publica o se cambia de dominio.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com']]; -
go-live-update-urls/tags/7.0.0/languages/go-live-update-urls-fr_FR.l10n.php
r3120664 r3159918 1 1 <?php 2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n > 1);',' messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls nécessite %1$sGo Live Update Urls PRO %3$s -%2$s. Veuillez mettre à jour ou désactiver la version PRO.','Ouch! That hurt! You should not be here!'=>'Aie! Ça fait mal! Tu ne devrais pas être ici!','The urls in the checked tables have been updated.'=>'Les URL dans les tables vérifiées ont été mises à jour.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Vous devez sélectionner des tables et remplir à la fois l’ancienne URL et la nouvelle URL pour mettre à jour les URL!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Remplace tous les occurrences de l’ensemble de la base de données de l’ancienne URL par une nouvelle URL.','WordPress core tables'=>'Tables de base WordPress','These tables are safe to update.'=>'Toutes les tables peuvent être mises à jour en toute sécurité.','Only the checked tables will be updated.'=>'Seules les tables vérifiées seront mises à jour.','Tables created by plugins'=>'Tables créées par des plugins','{<br />}{<a>}{</a>}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.'=>'Ces tables ne sont pas sûrs à mettre à jour avec la version de base de ce plugin! %1$sPour mettre à jour les tables créées par les plugins, utilisez la version %2$sPRO%3$s.','Old URL'=>'Ancienne URL','New URL'=>'Nouvelle URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Utilisez la version %1$sPRO%2$s pour tester les mises à jour de l’URL avant de les effectuer.','Update Urls'=>'Mettre à jour les Urls','Settings'=>'Paramètres','Go PRO'=>'Passer à la version pro','You must set a table and DB id before skipping a row.'=>'','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Met à jour toutes les URL de votre site lors de la mise en ligne ou du changement de domaine.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com'],'language'=>'fr_FR','x-generator'=>'Poedit 2.4.3'];2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n > 1);','language'=>'fr_FR','project-id-version'=>'Go Live Update Urls','pot-creation-date'=>'2024-07-10 14:05-0400','po-revision-date'=>'2024-07-10 14:06-0400','x-generator'=>'Poedit 2.4.3','messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls nécessite %1$sGo Live Update Urls PRO %3$s -%2$s. Veuillez mettre à jour ou désactiver la version PRO.','Ouch! That hurt! You should not be here!'=>'Aie! Ça fait mal! Tu ne devrais pas être ici!','The urls in the checked tables have been updated.'=>'Les URL dans les tables vérifiées ont été mises à jour.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Vous devez sélectionner des tables et remplir à la fois l’ancienne URL et la nouvelle URL pour mettre à jour les URL!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Remplace tous les occurrences de l’ensemble de la base de données de l’ancienne URL par une nouvelle URL.','WordPress core tables'=>'Tables de base WordPress','These tables are safe to update.'=>'Toutes les tables peuvent être mises à jour en toute sécurité.','Only the checked tables will be updated.'=>'Seules les tables vérifiées seront mises à jour.','Tables created by plugins'=>'Tables créées par des plugins','{<br />}{<a>}{</a>}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.'=>'Ces tables ne sont pas sûrs à mettre à jour avec la version de base de ce plugin! %1$sPour mettre à jour les tables créées par les plugins, utilisez la version %2$sPRO%3$s.','Old URL'=>'Ancienne URL','New URL'=>'Nouvelle URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Utilisez la version %1$sPRO%2$s pour tester les mises à jour de l’URL avant de les effectuer.','Update Urls'=>'Mettre à jour les Urls','Settings'=>'Paramètres','Go PRO'=>'Passer à la version pro','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Met à jour toutes les URL de votre site lors de la mise en ligne ou du changement de domaine.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com']]; -
go-live-update-urls/tags/7.0.0/readme.txt
r3124150 r3159918 4 4 Tags: search and replace, database, urls, domain, update urls 5 5 Requires at least: 6.2.0 6 Tested up to: 6.6. 16 Tested up to: 6.6.2 7 7 Requires PHP: 7.4.0 8 Stable tag: 6.8.08 Stable tag: 7.0.0 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 113 113 114 114 == Changelog == 115 = 7.0.0 = 116 * Introduced class constants for admin capability and parent menu. 117 * Introduced `Admin::get_admin_capability` method. 118 * Introduced `go-live-update-urls/admin/admin-capability` filter. 119 * Removed deprecated `Core::sanitize_field` method. 120 * Converted GitHub Actions and Git hooks to distributed versions. 121 * Tested to WordPress 6.6.2. 122 * Required PRO version 7.0.0+. 123 115 124 = 6.8.0 = 116 125 * Added support for PHP based translations. -
go-live-update-urls/tags/7.0.0/src/Admin.php
r3028437 r3159918 16 16 public const NAME = 'go-live-update-urls-settings'; 17 17 18 public const PARENT_MENU = 'tools.php'; 18 19 public const OLD_URL = 'old_url'; 19 20 public const NEW_URL = 'new_url'; … … 21 22 public const TABLE_INPUT_NAME = 'go-live-update-urls/input/database-table'; 22 23 public const SUBMIT = 'go-live-update-urls/input/submit'; 24 25 protected const CAPABILITY = 'manage_options'; 23 26 24 27 … … 112 115 */ 113 116 public function register_admin_page(): void { 114 add_management_page( 'Go Live Update Urls', 'Go Live', 'manage_options', static::NAME, [ 115 $this, 116 'admin_page', 117 ] ); 117 add_submenu_page( self::PARENT_MENU, 'Go Live Update Urls', 'Go Live', $this->get_admin_capability(), self::NAME, [ $this, 'admin_page' ] ); 118 } 119 120 121 /** 122 * Get the filtered capability required to use the tools page. 123 * 124 * @since 6.9.0 125 * 126 * @return string 127 */ 128 public function get_admin_capability(): string { 129 return apply_filters( 'go-live-update-urls/admin/admin-capability', self::CAPABILITY, $this ); 118 130 } 119 131 -
go-live-update-urls/tags/7.0.0/src/Core.php
r3028437 r3159918 79 79 */ 80 80 public function raise_memory_limit() { 81 return static::MEMORY_LIMIT; 82 } 83 84 85 /** 86 * Like `sanitize_text_field` except we don't remove 87 * URL encoded characters and HTML tags. 88 * 89 * @see go_live_update_urls_sanitize_field() 90 * 91 * @deprecated in favor of go_live_update_urls_sanitize_field 92 * 93 * @param int|float|string $value - User provided value to sanitize. 94 * 95 * @return string 96 */ 97 public function sanitize_field( $value ): string { 98 _deprecated_function( __METHOD__, '6.7.2', 'go_live_update_urls_sanitize_field' ); 99 return go_live_update_urls_sanitize_field( $value ); 81 return self::MEMORY_LIMIT; 100 82 } 101 83 -
go-live-update-urls/tags/7.0.0/src/Database.php
r3120664 r3159918 19 19 * @since 5.0.0 20 20 * 21 * @return array ( %table_name% => %table_column% )21 * @return array<string, string> - array( %table_name% => %table_column% ) 22 22 */ 23 23 public function get_serialized_tables() { … … 134 134 * @since 5.0.1 135 135 * 136 * @return array136 * @return string[] 137 137 */ 138 138 public function get_all_table_names() { … … 158 158 * @since 5.0.0 159 159 * 160 * @param string $old_url - the old URL.161 * @param string $new_url - the new URL.162 * @param array$tables - the tables we are going to update.160 * @param string $old_url - the old URL. 161 * @param string $new_url - the new URL. 162 * @param string[] $tables - the tables we are going to update. 163 163 * 164 164 * @return array<string, int> … … 282 282 */ 283 283 protected function supports_skipping( $table ) { 284 if ( empty( Skip_Rows::instance()->get_skipped( $table )) || null === Skip_Rows::instance()->get_primary_key( $table ) ) {284 if ( null === Skip_Rows::instance()->get_skipped( $table ) || null === Skip_Rows::instance()->get_primary_key( $table ) ) { 285 285 return false; 286 286 } -
go-live-update-urls/tags/7.0.0/src/Skip_Rows.php
r2946740 r3159918 42 42 * Full list of tables and ids to skip. 43 43 * 44 * @var array 44 * @var array<string, int[]> 45 45 */ 46 protected $skip = [];46 protected array $skip = []; 47 47 48 48 … … 100 100 * @return int[]|null 101 101 */ 102 public function get_skipped( $table ) {103 if ( ! empty( $this->skip[ $table ] )) {102 public function get_skipped( $table ): ?array { 103 if ( isset( $this->skip[ $table ] ) && [] !== $this->skip[ $table ] ) { 104 104 return $this->skip[ $table ]; 105 105 } -
go-live-update-urls/trunk/go-live-update-urls.php
r3120664 r3159918 6 6 * Author: OnPoint Plugins 7 7 * Author URI: https://onpointplugins.com 8 * Version: 6.8.08 * Version: 7.0.0 9 9 * Text Domain: go-live-update-urls 10 10 * Domain Path: /languages/ … … 16 16 */ 17 17 18 define( 'GO_LIVE_UPDATE_URLS_VERSION', ' 6.8.0' );19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', ' 6.13.0' );18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.0' ); 19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.0' ); 20 20 define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) ); 21 21 -
go-live-update-urls/trunk/languages/go-live-update-urls-de_DE.l10n.php
r3120664 r3159918 1 1 <?php 2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n != 1);',' messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls erfordert %1$sGo Live Update Urls PRO %3$s+%2$s. Bitte aktualisieren oder deaktivieren Sie die PRO-Version.','Ouch! That hurt! You should not be here!'=>'Autsch! Das tut weh! Du solltest nicht hier sein!','The urls in the checked tables have been updated.'=>'Die URLs in den überprüften Tabellen wurden aktualisiert.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Sie müssen beide URLs ausfüllen, um das Update durchzuführen!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Ersetzt alle Vorkommen in der gesamten Datenbank der alten URL durch eine neue URL.','WordPress core tables'=>'WordPress Kerntabellen','These tables are safe to update.'=>'Diese Tabellen können sicher aktualisiert werden.','Only the checked tables will be updated.'=>'Nur die überprüften Tabellen werden aktualisiert.','Tables created by plugins'=>'Von Plugins erstellte Tabellen','{<br />}{<a>}{</a>}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.'=>'Diese Tabellen sind nicht sicher mit der Basisversion dieses Plugins zu aktualisieren! %1$sUm Tabellen zu aktualisieren, die von Plugins erstellt wurden, verwenden Sie die %2$sPRO-Version%3$s.','Old URL'=>'Alte URL','New URL'=>'Neue URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Verwenden Sie die %1$sPRO-Version%2$s, um URL-Aktualisierungen zu testen, bevor Sie sie erstellen.','Update Urls'=>'Urls aktualisieren','Settings'=>'Einstellungen','Go PRO'=>'Gehen Sie PRO','You must set a table and DB id before skipping a row.'=>'','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Aktualisiert jede URL auf Ihrer Website, wenn sie live geht oder die Domain wechselt.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com'],'language'=>'de_DE','x-generator'=>'Poedit 2.4.3'];2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'de_DE','project-id-version'=>'Go Live Update URLS','pot-creation-date'=>'2024-07-10 14:10-0400','po-revision-date'=>'2024-07-10 14:10-0400','x-generator'=>'Poedit 2.4.3','messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls erfordert %1$sGo Live Update Urls PRO %3$s+%2$s. Bitte aktualisieren oder deaktivieren Sie die PRO-Version.','Ouch! That hurt! You should not be here!'=>'Autsch! Das tut weh! Du solltest nicht hier sein!','The urls in the checked tables have been updated.'=>'Die URLs in den überprüften Tabellen wurden aktualisiert.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Sie müssen beide URLs ausfüllen, um das Update durchzuführen!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Ersetzt alle Vorkommen in der gesamten Datenbank der alten URL durch eine neue URL.','WordPress core tables'=>'WordPress Kerntabellen','These tables are safe to update.'=>'Diese Tabellen können sicher aktualisiert werden.','Only the checked tables will be updated.'=>'Nur die überprüften Tabellen werden aktualisiert.','Tables created by plugins'=>'Von Plugins erstellte Tabellen','{<br />}{<a>}{</a>}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.'=>'Diese Tabellen sind nicht sicher mit der Basisversion dieses Plugins zu aktualisieren! %1$sUm Tabellen zu aktualisieren, die von Plugins erstellt wurden, verwenden Sie die %2$sPRO-Version%3$s.','Old URL'=>'Alte URL','New URL'=>'Neue URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Verwenden Sie die %1$sPRO-Version%2$s, um URL-Aktualisierungen zu testen, bevor Sie sie erstellen.','Update Urls'=>'Urls aktualisieren','Settings'=>'Einstellungen','Go PRO'=>'Gehen Sie PRO','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Aktualisiert jede URL auf Ihrer Website, wenn sie live geht oder die Domain wechselt.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com']]; -
go-live-update-urls/trunk/languages/go-live-update-urls-es_ES.l10n.php
r3120664 r3159918 1 1 <?php 2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n != 1);',' messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls requiere %1$sGo Live Update Urls PRO %3$s+%2$s. Actualice o desactive la versión PRO.','Ouch! That hurt! You should not be here!'=>'¡Ay! ¡Eso duele! ¡No deberías estar aquí!','The urls in the checked tables have been updated.'=>'Las URL en las tablas comprobadas se han actualizado.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Debe seleccionar tablas y rellenar tanto la URL antigua como la nueva URL para actualizar las URL!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Reemplaza todas las apariciones de toda la base de datos de la dirección URL antigua por una nueva dirección URL.','WordPress core tables'=>'Tablas principales de WordPress','These tables are safe to update.'=>'Todas las tablas son seguras para actualizar.','Only the checked tables will be updated.'=>'Solo las tablas comprobadas serán actualizadas.','Tables created by plugins'=>'Tablas creadas por plugins','{<br />}{<a>}{</a>}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.'=>'Estas tablas no son seguras para actualizar con la versión básica de este plugin! %1$sPara actualizar tablas creadas por plugins, utilice la versión %2$sPRO%3$s.','Old URL'=>'URL antigua','New URL'=>'Nueva URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Utilice %1$sPRO versión%2$s para probar las actualizaciones de URL antes de realizarlas.','Update Urls'=>'Actualizar Urls','Settings'=>'Ajustes','Go PRO'=>'Actualizar a PRO','You must set a table and DB id before skipping a row.'=>'','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Actualiza todas las URL de tu sitio cuando se publica o se cambia de dominio.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com'],'language'=>'es_ES','x-generator'=>'Poedit 2.4.3'];2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'es_ES','project-id-version'=>'Go Live Update Urls','pot-creation-date'=>'2024-07-10 14:05-0400','po-revision-date'=>'2024-07-10 14:05-0400','x-generator'=>'Poedit 2.4.3','messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls requiere %1$sGo Live Update Urls PRO %3$s+%2$s. Actualice o desactive la versión PRO.','Ouch! That hurt! You should not be here!'=>'¡Ay! ¡Eso duele! ¡No deberías estar aquí!','The urls in the checked tables have been updated.'=>'Las URL en las tablas comprobadas se han actualizado.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Debe seleccionar tablas y rellenar tanto la URL antigua como la nueva URL para actualizar las URL!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Reemplaza todas las apariciones de toda la base de datos de la dirección URL antigua por una nueva dirección URL.','WordPress core tables'=>'Tablas principales de WordPress','These tables are safe to update.'=>'Todas las tablas son seguras para actualizar.','Only the checked tables will be updated.'=>'Solo las tablas comprobadas serán actualizadas.','Tables created by plugins'=>'Tablas creadas por plugins','{<br />}{<a>}{</a>}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.'=>'Estas tablas no son seguras para actualizar con la versión básica de este plugin! %1$sPara actualizar tablas creadas por plugins, utilice la versión %2$sPRO%3$s.','Old URL'=>'URL antigua','New URL'=>'Nueva URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Utilice %1$sPRO versión%2$s para probar las actualizaciones de URL antes de realizarlas.','Update Urls'=>'Actualizar Urls','Settings'=>'Ajustes','Go PRO'=>'Actualizar a PRO','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Actualiza todas las URL de tu sitio cuando se publica o se cambia de dominio.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com']]; -
go-live-update-urls/trunk/languages/go-live-update-urls-fr_FR.l10n.php
r3120664 r3159918 1 1 <?php 2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n > 1);',' messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls nécessite %1$sGo Live Update Urls PRO %3$s -%2$s. Veuillez mettre à jour ou désactiver la version PRO.','Ouch! That hurt! You should not be here!'=>'Aie! Ça fait mal! Tu ne devrais pas être ici!','The urls in the checked tables have been updated.'=>'Les URL dans les tables vérifiées ont été mises à jour.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Vous devez sélectionner des tables et remplir à la fois l’ancienne URL et la nouvelle URL pour mettre à jour les URL!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Remplace tous les occurrences de l’ensemble de la base de données de l’ancienne URL par une nouvelle URL.','WordPress core tables'=>'Tables de base WordPress','These tables are safe to update.'=>'Toutes les tables peuvent être mises à jour en toute sécurité.','Only the checked tables will be updated.'=>'Seules les tables vérifiées seront mises à jour.','Tables created by plugins'=>'Tables créées par des plugins','{<br />}{<a>}{</a>}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.'=>'Ces tables ne sont pas sûrs à mettre à jour avec la version de base de ce plugin! %1$sPour mettre à jour les tables créées par les plugins, utilisez la version %2$sPRO%3$s.','Old URL'=>'Ancienne URL','New URL'=>'Nouvelle URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Utilisez la version %1$sPRO%2$s pour tester les mises à jour de l’URL avant de les effectuer.','Update Urls'=>'Mettre à jour les Urls','Settings'=>'Paramètres','Go PRO'=>'Passer à la version pro','You must set a table and DB id before skipping a row.'=>'','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Met à jour toutes les URL de votre site lors de la mise en ligne ou du changement de domaine.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com'],'language'=>'fr_FR','x-generator'=>'Poedit 2.4.3'];2 return ['domain'=>'go-live-update-urls','plural-forms'=>'nplurals=2; plural=(n > 1);','language'=>'fr_FR','project-id-version'=>'Go Live Update Urls','pot-creation-date'=>'2024-07-10 14:05-0400','po-revision-date'=>'2024-07-10 14:06-0400','x-generator'=>'Poedit 2.4.3','messages'=>['{<a>}{</a>}Go Live Update Urls requires %1$sGo Live Update Urls PRO %3$s+%2$s. Please update or deactivate the PRO version.'=>'Go Live Update Urls nécessite %1$sGo Live Update Urls PRO %3$s -%2$s. Veuillez mettre à jour ou désactiver la version PRO.','Ouch! That hurt! You should not be here!'=>'Aie! Ça fait mal! Tu ne devrais pas être ici!','The urls in the checked tables have been updated.'=>'Les URL dans les tables vérifiées ont été mises à jour.','You must select tables and fill out both the Old URL and New URL to update urls!'=>'Vous devez sélectionner des tables et remplir à la fois l’ancienne URL et la nouvelle URL pour mettre à jour les URL!','Go Live Update Urls'=>'Go Live Update Urls','Replaces all occurrences in the entire database of the Old URL with a New URL.'=>'Remplace tous les occurrences de l’ensemble de la base de données de l’ancienne URL par une nouvelle URL.','WordPress core tables'=>'Tables de base WordPress','These tables are safe to update.'=>'Toutes les tables peuvent être mises à jour en toute sécurité.','Only the checked tables will be updated.'=>'Seules les tables vérifiées seront mises à jour.','Tables created by plugins'=>'Tables créées par des plugins','{<br />}{<a>}{</a>}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.'=>'Ces tables ne sont pas sûrs à mettre à jour avec la version de base de ce plugin! %1$sPour mettre à jour les tables créées par les plugins, utilisez la version %2$sPRO%3$s.','Old URL'=>'Ancienne URL','New URL'=>'Nouvelle URL','{<a>}{</a>}Use the %1$sPRO version%2$s to test URL updates before making them.'=>'Utilisez la version %1$sPRO%2$s pour tester les mises à jour de l’URL avant de les effectuer.','Update Urls'=>'Mettre à jour les Urls','Settings'=>'Paramètres','Go PRO'=>'Passer à la version pro','https://onpointplugins.com/go-live-update-urls/'=>'https://onpointplugins.com/go-live-update-urls/','Updates every URL on your site when going live or changing domains.'=>'Met à jour toutes les URL de votre site lors de la mise en ligne ou du changement de domaine.','OnPoint Plugins'=>'OnPoint Plugins','https://onpointplugins.com'=>'https://onpointplugins.com']]; -
go-live-update-urls/trunk/readme.txt
r3124150 r3159918 4 4 Tags: search and replace, database, urls, domain, update urls 5 5 Requires at least: 6.2.0 6 Tested up to: 6.6. 16 Tested up to: 6.6.2 7 7 Requires PHP: 7.4.0 8 Stable tag: 6.8.08 Stable tag: 7.0.0 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 113 113 114 114 == Changelog == 115 = 7.0.0 = 116 * Introduced class constants for admin capability and parent menu. 117 * Introduced `Admin::get_admin_capability` method. 118 * Introduced `go-live-update-urls/admin/admin-capability` filter. 119 * Removed deprecated `Core::sanitize_field` method. 120 * Converted GitHub Actions and Git hooks to distributed versions. 121 * Tested to WordPress 6.6.2. 122 * Required PRO version 7.0.0+. 123 115 124 = 6.8.0 = 116 125 * Added support for PHP based translations. -
go-live-update-urls/trunk/src/Admin.php
r3028437 r3159918 16 16 public const NAME = 'go-live-update-urls-settings'; 17 17 18 public const PARENT_MENU = 'tools.php'; 18 19 public const OLD_URL = 'old_url'; 19 20 public const NEW_URL = 'new_url'; … … 21 22 public const TABLE_INPUT_NAME = 'go-live-update-urls/input/database-table'; 22 23 public const SUBMIT = 'go-live-update-urls/input/submit'; 24 25 protected const CAPABILITY = 'manage_options'; 23 26 24 27 … … 112 115 */ 113 116 public function register_admin_page(): void { 114 add_management_page( 'Go Live Update Urls', 'Go Live', 'manage_options', static::NAME, [ 115 $this, 116 'admin_page', 117 ] ); 117 add_submenu_page( self::PARENT_MENU, 'Go Live Update Urls', 'Go Live', $this->get_admin_capability(), self::NAME, [ $this, 'admin_page' ] ); 118 } 119 120 121 /** 122 * Get the filtered capability required to use the tools page. 123 * 124 * @since 6.9.0 125 * 126 * @return string 127 */ 128 public function get_admin_capability(): string { 129 return apply_filters( 'go-live-update-urls/admin/admin-capability', self::CAPABILITY, $this ); 118 130 } 119 131 -
go-live-update-urls/trunk/src/Core.php
r3028437 r3159918 79 79 */ 80 80 public function raise_memory_limit() { 81 return static::MEMORY_LIMIT; 82 } 83 84 85 /** 86 * Like `sanitize_text_field` except we don't remove 87 * URL encoded characters and HTML tags. 88 * 89 * @see go_live_update_urls_sanitize_field() 90 * 91 * @deprecated in favor of go_live_update_urls_sanitize_field 92 * 93 * @param int|float|string $value - User provided value to sanitize. 94 * 95 * @return string 96 */ 97 public function sanitize_field( $value ): string { 98 _deprecated_function( __METHOD__, '6.7.2', 'go_live_update_urls_sanitize_field' ); 99 return go_live_update_urls_sanitize_field( $value ); 81 return self::MEMORY_LIMIT; 100 82 } 101 83 -
go-live-update-urls/trunk/src/Database.php
r3120664 r3159918 19 19 * @since 5.0.0 20 20 * 21 * @return array ( %table_name% => %table_column% )21 * @return array<string, string> - array( %table_name% => %table_column% ) 22 22 */ 23 23 public function get_serialized_tables() { … … 134 134 * @since 5.0.1 135 135 * 136 * @return array136 * @return string[] 137 137 */ 138 138 public function get_all_table_names() { … … 158 158 * @since 5.0.0 159 159 * 160 * @param string $old_url - the old URL.161 * @param string $new_url - the new URL.162 * @param array$tables - the tables we are going to update.160 * @param string $old_url - the old URL. 161 * @param string $new_url - the new URL. 162 * @param string[] $tables - the tables we are going to update. 163 163 * 164 164 * @return array<string, int> … … 282 282 */ 283 283 protected function supports_skipping( $table ) { 284 if ( empty( Skip_Rows::instance()->get_skipped( $table )) || null === Skip_Rows::instance()->get_primary_key( $table ) ) {284 if ( null === Skip_Rows::instance()->get_skipped( $table ) || null === Skip_Rows::instance()->get_primary_key( $table ) ) { 285 285 return false; 286 286 } -
go-live-update-urls/trunk/src/Skip_Rows.php
r2946740 r3159918 42 42 * Full list of tables and ids to skip. 43 43 * 44 * @var array 44 * @var array<string, int[]> 45 45 */ 46 protected $skip = [];46 protected array $skip = []; 47 47 48 48 … … 100 100 * @return int[]|null 101 101 */ 102 public function get_skipped( $table ) {103 if ( ! empty( $this->skip[ $table ] )) {102 public function get_skipped( $table ): ?array { 103 if ( isset( $this->skip[ $table ] ) && [] !== $this->skip[ $table ] ) { 104 104 return $this->skip[ $table ]; 105 105 }
Note: See TracChangeset
for help on using the changeset viewer.