Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
Unfortunately, trying to replace 1/2" with ½" or 1/2inch using Terms as the Advanced Source type results in a correct preview, but the replaced data overwrites rows in a different table.
Here's my wp_terms, highlighting the same results as in Search Regex's preview: https://a.cl.ly/Z4u9yW20
Upon clicking Replace, I would expect wp_terms.name for term_id 57 to change from Iron Finials for 1/2" rods to Iron Finials for ½" rods (and similarly for term_id 67). But after performing a replace, repeating the search still shows the same 2 matched rows..
Actual Behavior
Here's my wp_term_taxonomy, highlighting the rows that will get unexpectedly overwritten: https://a.cl.ly/X6ujdZjJ
When I do a replacement (either via the Replace All button or via clicking a highlighted phrase and using the single replacement popup), what happens is wp_terms.name remains unchanged, and wp_term_taxonomy.description for term_id 57 changes to Iron Finials for ½" rods: https://a.cl.ly/NQu91yQW
Steps to reproduce
In case this is relevant, here is the full content of wp_term_taxonomy.description for term_id 57, which gets entirely overwritten: https://a.cl.ly/jku0D9ND
Even if I specifically set the Action to Modify Matches only on the Name column (https://a.cl.ly/kpuvwX0m), the issue persists.
Using the Health Check & Troubleshooting plugin to switch to a default theme (Twenty Twenty-Three) and disable all other plugins except for WooCommerce, I was still able to replicate the problem, even after also adding a Terms filter and switching my replacement text to 1/2inch, as shown in this screenshot: https://a.cl.ly/L1uEQLKq
Thus, I suspect the issue boils down to using double quotes in the Search input with Terms as the Source.
Environment
WordPress (6.6.2) and Search Regex (3.1.0) are up to date, as is WooCommerce (9.3.1). I'm using Safari 17.6 (against my better judgment) but I doubt that's relevant.
Summary
This plugin is amazing, thank you!
Unfortunately, trying to replace
1/2"
with½"
or1/2inch
using Terms as the Advanced Source type results in a correct preview, but the replaced data overwrites rows in a different table.Here are my settings: https://a.cl.ly/DOu19bdn
Here's my
wp_terms
, highlighting the same results as in Search Regex's preview: https://a.cl.ly/Z4u9yW20Upon clicking Replace, I would expect
wp_terms.name
forterm_id
57 to change fromIron Finials for 1/2" rods
toIron Finials for ½" rods
(and similarly forterm_id
67). But after performing a replace, repeating the search still shows the same 2 matched rows..Actual Behavior
Here's my
wp_term_taxonomy
, highlighting the rows that will get unexpectedly overwritten: https://a.cl.ly/X6ujdZjJWhen I do a replacement (either via the Replace All button or via clicking a highlighted phrase and using the single replacement popup), what happens is
wp_terms.name
remains unchanged, andwp_term_taxonomy.description
forterm_id
57 changes toIron Finials for ½" rods
: https://a.cl.ly/NQu91yQWSteps to reproduce
In case this is relevant, here is the full content of
wp_term_taxonomy.description
forterm_id
57, which gets entirely overwritten: https://a.cl.ly/jku0D9NDEven if I specifically set the Action to Modify Matches only on the Name column (https://a.cl.ly/kpuvwX0m), the issue persists.
Using the Health Check & Troubleshooting plugin to switch to a default theme (Twenty Twenty-Three) and disable all other plugins except for WooCommerce, I was still able to replicate the problem, even after also adding a Terms filter and switching my replacement text to
1/2inch
, as shown in this screenshot: https://a.cl.ly/L1uEQLKqThus, I suspect the issue boils down to using double quotes in the Search input with Terms as the Source.
Environment
WordPress (6.6.2) and Search Regex (3.1.0) are up to date, as is WooCommerce (9.3.1). I'm using Safari 17.6 (against my better judgment) but I doubt that's relevant.