Plugin Directory

Changeset 3159918


Ignore:
Timestamp:
09/30/2024 02:40:01 PM (18 months ago)
Author:
Mat Lipe
Message:

Update to version 7.0.0 from GitHub

Location:
go-live-update-urls
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • go-live-update-urls/tags/7.0.0/go-live-update-urls.php

    r3120664 r3159918  
    66 * Author: OnPoint Plugins
    77 * Author URI: https://onpointplugins.com
    8  * Version: 6.8.0
     8 * Version: 7.0.0
    99 * Text Domain: go-live-update-urls
    1010 * Domain Path: /languages/
     
    1616 */
    1717
    18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.8.0' );
    19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.13.0' );
     18define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.0' );
     19define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.0' );
    2020define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
    2121
  • go-live-update-urls/tags/7.0.0/languages/go-live-update-urls-de_DE.l10n.php

    r3120664 r3159918  
    11<?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'];
     2return ['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  
    11<?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'];
     2return ['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  
    11<?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'];
     2return ['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  
    44Tags: search and replace, database, urls, domain, update urls
    55Requires at least: 6.2.0
    6 Tested up to: 6.6.1
     6Tested up to: 6.6.2
    77Requires PHP: 7.4.0
    8 Stable tag: 6.8.0
     8Stable tag: 7.0.0
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    113113
    114114== 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
    115124= 6.8.0 =
    116125* Added support for PHP based translations.
  • go-live-update-urls/tags/7.0.0/src/Admin.php

    r3028437 r3159918  
    1616    public const NAME = 'go-live-update-urls-settings';
    1717
     18    public const PARENT_MENU      = 'tools.php';
    1819    public const OLD_URL          = 'old_url';
    1920    public const NEW_URL          = 'new_url';
     
    2122    public const TABLE_INPUT_NAME = 'go-live-update-urls/input/database-table';
    2223    public const SUBMIT           = 'go-live-update-urls/input/submit';
     24
     25    protected const CAPABILITY = 'manage_options';
    2326
    2427
     
    112115     */
    113116    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 );
    118130    }
    119131
  • go-live-update-urls/tags/7.0.0/src/Core.php

    r3028437 r3159918  
    7979     */
    8080    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;
    10082    }
    10183
  • go-live-update-urls/tags/7.0.0/src/Database.php

    r3120664 r3159918  
    1919     * @since   5.0.0
    2020     *
    21      * @return array( %table_name% => %table_column% )
     21     * @return array<string, string> - array( %table_name% => %table_column% )
    2222     */
    2323    public function get_serialized_tables() {
     
    134134     * @since 5.0.1
    135135     *
    136      * @return array
     136     * @return string[]
    137137     */
    138138    public function get_all_table_names() {
     
    158158     * @since 5.0.0
    159159     *
    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.
    163163     *
    164164     * @return array<string, int>
     
    282282     */
    283283    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 ) ) {
    285285            return false;
    286286        }
  • go-live-update-urls/tags/7.0.0/src/Skip_Rows.php

    r2946740 r3159918  
    4242     * Full list of tables and ids to skip.
    4343     *
    44      * @var array
     44     * @var array<string, int[]>
    4545     */
    46     protected $skip = [];
     46    protected array $skip = [];
    4747
    4848
     
    100100     * @return int[]|null
    101101     */
    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 ] ) {
    104104            return $this->skip[ $table ];
    105105        }
  • go-live-update-urls/trunk/go-live-update-urls.php

    r3120664 r3159918  
    66 * Author: OnPoint Plugins
    77 * Author URI: https://onpointplugins.com
    8  * Version: 6.8.0
     8 * Version: 7.0.0
    99 * Text Domain: go-live-update-urls
    1010 * Domain Path: /languages/
     
    1616 */
    1717
    18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '6.8.0' );
    19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '6.13.0' );
     18define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.0' );
     19define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.0' );
    2020define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
    2121
  • go-live-update-urls/trunk/languages/go-live-update-urls-de_DE.l10n.php

    r3120664 r3159918  
    11<?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'];
     2return ['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  
    11<?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'];
     2return ['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  
    11<?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'];
     2return ['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  
    44Tags: search and replace, database, urls, domain, update urls
    55Requires at least: 6.2.0
    6 Tested up to: 6.6.1
     6Tested up to: 6.6.2
    77Requires PHP: 7.4.0
    8 Stable tag: 6.8.0
     8Stable tag: 7.0.0
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    113113
    114114== 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
    115124= 6.8.0 =
    116125* Added support for PHP based translations.
  • go-live-update-urls/trunk/src/Admin.php

    r3028437 r3159918  
    1616    public const NAME = 'go-live-update-urls-settings';
    1717
     18    public const PARENT_MENU      = 'tools.php';
    1819    public const OLD_URL          = 'old_url';
    1920    public const NEW_URL          = 'new_url';
     
    2122    public const TABLE_INPUT_NAME = 'go-live-update-urls/input/database-table';
    2223    public const SUBMIT           = 'go-live-update-urls/input/submit';
     24
     25    protected const CAPABILITY = 'manage_options';
    2326
    2427
     
    112115     */
    113116    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 );
    118130    }
    119131
  • go-live-update-urls/trunk/src/Core.php

    r3028437 r3159918  
    7979     */
    8080    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;
    10082    }
    10183
  • go-live-update-urls/trunk/src/Database.php

    r3120664 r3159918  
    1919     * @since   5.0.0
    2020     *
    21      * @return array( %table_name% => %table_column% )
     21     * @return array<string, string> - array( %table_name% => %table_column% )
    2222     */
    2323    public function get_serialized_tables() {
     
    134134     * @since 5.0.1
    135135     *
    136      * @return array
     136     * @return string[]
    137137     */
    138138    public function get_all_table_names() {
     
    158158     * @since 5.0.0
    159159     *
    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.
    163163     *
    164164     * @return array<string, int>
     
    282282     */
    283283    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 ) ) {
    285285            return false;
    286286        }
  • go-live-update-urls/trunk/src/Skip_Rows.php

    r2946740 r3159918  
    4242     * Full list of tables and ids to skip.
    4343     *
    44      * @var array
     44     * @var array<string, int[]>
    4545     */
    46     protected $skip = [];
     46    protected array $skip = [];
    4747
    4848
     
    100100     * @return int[]|null
    101101     */
    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 ] ) {
    104104            return $this->skip[ $table ];
    105105        }
Note: See TracChangeset for help on using the changeset viewer.