Title: Nonce bug
Last modified: August 25, 2026

---

# Nonce bug

 *  [frzsombor](https://wordpress.org/support/users/frzsombor/)
 * (@frzsombor)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/nonce-bug/)
 * I found a small bug in the plugin when I started a search, forgot about the browser
   tab, and opened it a day later. As a day had passed, Chrome’s Memory Saver feature
   put the tab into “sleep mode”, so when I opened it, Chrome reloaded the page.
   The results disappeared (which might be expected), but after Chrome refreshed
   the page, the “Select tables” input was completely empty. I tried refreshing 
   the page a few times, but “Select tables” stayed empty. I even checked the browser
   logs for frontend errors, but there was nothing. Then I realized there was a 
   _wpnonce parameter in the URL, which seemed to have already expired. As soon 
   as I removed the nonce parameter, the page loaded correctly. I even saw the last
   run’s results, and “Select tables” showed the DB tables correctly too. Maybe 
   checking the nonce in the URL and redirecting on an invalid nonce would be a 
   good idea.
 * Example URL: /wp-admin/tools.php?page=better-search-replace&tab=bsr_search_replace&
   result=true&_wpnonce=anything

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnonce-bug%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/better-search-replace/assets/icon-256x256.png?rev=2706527)
 * [Better Search Replace](https://wordpress.org/plugins/better-search-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-search-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-search-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/better-search-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-search-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-search-replace/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [frzsombor](https://wordpress.org/support/users/frzsombor/)
 * Last activity: [1 week, 4 days ago](https://wordpress.org/support/topic/nonce-bug/)
 * Status: not a support question