Better Search Replace

Descrizione

Quando si sposta il sito WordPress su un nuovo dominio o server, è probabile che si verifichi la necessità di eseguire un “cerca/sostituisci” sul database affinché tutto funzioni correttamente. Fortunatamente ci sono diversi plugin disponibili per questa attività, tuttavia, tutti hanno un approccio diverso rispetto ad alcune caratteristiche chiave. Questo plugin consolida le migliori caratteristiche di questi plugin sopra citati, incorporando le seguenti funzionalità:

  • Supporto per la serializzazione per tutte le tabelle
  • La possibilità di selezionare specifiche tabelle
  • La possibilità di eseguire una “prova” per vedere quanti campi verranno aggiornati
  • Nessun requisito del server a parte l’installazione funzionante di WordPress
  • Supporto a WordPress Multisite

Caratteristiche per risparmiare tempo disponibili nella versione Pro:

  • Visualizzare esattamente cosa è cambiato durante una ricerca/sostituzione
  • Backup e importazione del database durante l’esecuzione di una ricerca/sostituzione
  • Priorità nel supporto via email dagli sviluppatori del plugin
  • Salvare o caricare profili personalizzati per ripetere rapidamente una ricerca/sostituzione
  • Supporto e aggiornamenti per 1 anno

Per saperne di più circa Better Search Replace Pro

La funzionalità di ricerca e sostituzione è fortemente basata sul grande script opensource Search Replace DB di Interconnect/it, modificato per utilizzare le funzioni database native di WordPress, per garantire la compatibilità.

Lingue supportate

  • Inglese
  • Francese
  • Tedesco
  • Spagnolo

Vuoi contribuire?

Sentiti libero di aprire un problema (issue) o di inviare una richiesta di modifica (pull request) su GitHub.

Screenshot

  • La pagina di Better Search Replace aggiunta al menu "Strumenti"
  • Dopo aver lanciato una prova di "cerca/sostituisci".

Installazione

Installa Better Search Replace nello stesso modo in cui installi gli altri plugin di WordPress.

Metoto automatico dalla bacheca:

  1. Fai Login nell’area di amministrazione di WordPress ed vai in Plugins -> Aggiungi Nuovo
  2. Inserisci la stringa “Better Search Replace” nella barra di ricerca e seleziona questo plugin.
  3. Fai clic su “Installa ora”, e dopo su “Attiva”.

Metodo manuale tramite upload via ftp:

  1. Decomprimi il plugin e carica la directory “better-search-replace” nella tua directory “wp-content/plugins”.
  2. Attiva il plugin attraverso il menu plugin di WordPress.

FAQ

Come usare Better Search Replace

Una volta attivato, Better Search Replace aggiungerà una pagina nel menu “Strumenti” nella bacheca di amministrazione di WordPress.

È supportato il mio host?

Si! Questo plugin è compatibile con qualsiasi host.

Posso danneggiare il mio sito con questo plugin?

Sì. Inserire una stringa di ricerca o sostituzione sbagliata può danneggiare il tuo database. Per questo motivo è sempre consigliabile fare un backup del database prima di utilizzare questo plugin.

Come funziona questo plugin in una installazione Multisite di WordPress?

Quando usi questo plugin in una installazione Multisite di WordPress, esso sarà caricato e visibile solo agli amministratori del Network. Gli amministratori possono andare nella bacheca di ogni sito e lanciare cerca/sostituisci solo per le tabelle di quel sito, o andare nella bacheca del network e lanciare cerca/sostituisci per tutte le tabelle.

Come posso usare questo plugin quando cambia URL?

Se stai trasferendo il sito da un server ad un altro, e cambiando l’URL della tua installazione di WordPress, l’approccio seguente ti consente di farlo facilmente senza influire sul vecchio sito:

  1. Esegui il backup del database sul sito attuale
  2. Installa il database nel nuovo host.
  3. Nel nuovo host, aggiungi l’URL del nuovo sito nel file wp-config.php, come spiegato qui
  4. Accedere all’area di amministrazione della nuova installazione ed eseguire Better Search Replace cambiando l’URL del vecchio sito con l’URL del nuovo sito.
  5. Elimina la costante “site_url” che hai aggiunto a wp-config.php. Potresti anche dover rigenerare il tuo .htaccess andando su Impostazioni – > Permalink e salvataggio delle impostazioni.

Maggiori informazioni sulla migrazione di WordPress si trovano qui.

Recensioni

10 Febbraio 2024
Hace justo lo que se le pide sin complicaciones. Me ha sido de mucha utilidad, lo recomiendo 100%
25 Gennaio 2024 1 risposta
I feel misled as the 'dry run' option is NOT part of the free plugin but rather a paid option. Imho 'dry run' is essential in any search and replace plugin so advertising this plugin as 'free' is a bit misleading. Technically this plugin is free but unusable (way to dangerous/powerful) as such.
14 Dicembre 2023 2 risposte
I was going to try doing some search and replacements, and chose to do the 'dry run' first, but apparently you can't view the results from the dry run, without upgrading to the paid version. This effectively makes it less than useless. I'm not going to run a search/replace on a table unless I can preview what's going to be changed first.
Leggi tutte le recensioni di 508

Contributi e sviluppo

“Better Search Replace” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“Better Search Replace” è stato tradotto in 28 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Better Search Replace” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

1.4.5 – January 18, 2024

  • Security: Unserializing an object during search and replace operations now passes 'allowed_classes' => false to avoid instantiating the object and potentially running malicious code stored in the database (thanks to Wordfence for responsible disclosure on December 18, 2023 followed by development and testing of the fix by WP Engine)
  • Fix: A regression in version 1.4.4 which caused some search results to be skipped has been fixed to ensure only numeric keyed objects are skipped

1.4.4 – December 14, 2023

  • Fix: Objects with numerical properties are now skipped to avoid causing errors

1.4.3 – September 5, 2023

  • New: Links to plugin documentation, support, feedback, and changelog are now available in the footer of WP Admin
  • Improvement: PHP 8.2 and Better Search Replace are now compatible

1.4.2 – January 11, 2023

  • Security: Arbitrary tab templates in the templates directory can no longer be loaded using a query parameter.

1.4.1 – July 25, 2022

  • Security: Selected tables are now confirmed to exist before processing the request

1.4 – April 7, 2022

  • New: Better Search Replace has a brand new user interface
  • Improvement: Default capability required to use the plugin has changed from “install_plugins” to “manage_options” for compatibility with DISALLOW_FILE_MODS

1.3.4 – December 7, 2020

  • Improvement: WordPress 5.6 and PHP 8 compatible
  • Fix: Strings that have been serialized twice showing up as false-positives

1.3.3 – February 26, 2019

  • Fix: Some special characters interfering with search/replace
  • Security: Pass template filenames through sanitize_file_name()
  • Security: Verify nonce when downloading diagnostic info

1.3.2 – January 3, 2018

  • Fix: Only one table searched on some environments (props @Ov3rfly)
  • Tweak: Update text in sidebar

1.3.1 – September 14, 2017

  • Security: Check if data is serialized before unserializing it
  • Improvement: Increased size of table select

1.3 – November 10, 2016

  • Improvement: Updated sidebar and added pro version discount
  • Fix: Outdated links to old website
  • Fix: Prevent requests to invalid tabs

1.2.10 – June 2, 2016

  • Fix: CSS not loaded on details page

1.2.9 – December 8, 2015

  • Fix: Bug with case-insensitive searches in serialized objects
  • Fix: Bug with early skip due to lack of primary key

1.2.8 – November 25, 2015

  • Fix: Bug with report details

1.2.7 – November 24, 2015

  • Fix: Untranslateable string
  • Tweak: Check BSR_PATH instead of ABSPATH to be consistent
  • Tested with 4.4

1.2.6

  • Removed unused code/small cleanup

1.2.5

  • Improved progress bar info and styles
  • Small cleanup

1.2.4

  • Added “Settings saved” notice when saving settings
  • Fixed bug with wp_magic_quotes interfering with some search strings

1.2.3

  • Fixed bug with searching for backslashes
  • Fixed potential bug with getting tables in large multisites
  • Fixed potential notice in append_report
  • Improved handling of missing primary keys

1.2.2

  • Fixed AJAX conflict with WooCommerce
  • Fixed a few issues with translations
  • Tweaked “System Info” to use get_locale() instead of WP_LANG constant
  • Updated German translation (props @Linus Ziegenhagen)

1.2.1

  • Fixed minor issue with display of progress bar
  • Updated translation file

1.2

  • Switched to AJAX bulk processing for search/replaces
  • Decreased minimum “Max Page Size” to 1000
  • Added “Help” tab with system info for easier troubleshooting

1.1.1

  • Added ability to change max page size
  • Decreased default page size to prevent white screen issue on some environments

1.1

  • Added ability to change capability required to use plugin
  • Small bugfixes and translation fixes

1.0.6

  • Added table sizes to the database table listing
  • Added French translation (props @Jean Philippe)

1.0.5

  • Added support for case-insensitive searches
  • Added German translation (props @Linus Ziegenhagen)

1.0.4

  • Potential security fixes

1.0.3

  • Fixed issue with searching for special characters like ‘\’
  • Fixed bug with replacing some objects

1.0.2

  • Fixed untranslateable strings on submit button and submenu page.

1.0.1

  • Fixed issue with loading translations and added Spanish translation (props Eduardo Larequi)
  • Fixed bug with reporting timing
  • Updated to use “Dry Run” as default
  • Added support for WordPress Multisite (see FAQs for more info)

1.0

  • Initial release