wp-migrate-db icon indicating copy to clipboard operation
wp-migrate-db copied to clipboard

Bad default value when creating a new migration

Open k1sul1 opened this issue 8 years ago • 0 comments

This image will describe the issue better than I ever could.

issue

So, to the point. For some reason, when you create a new migration, the replace_old[] field has a value automatically set. This value seems to be dependent on whatever domain you're using to access the site, instead of the siteurl.

I'm using browsersync to automatically reload the pages whenever a change to the project files is detected, and it basically proxies every request I make to the actual local domain. The downside is that I've to use https://localhost:3000 as my development domain.

Proposed fix: use value of get_option('siteurl') as this fields value.

I'm using the Pro version, but this is relevant to the free version also.

k1sul1 avatar Nov 09 '16 09:11 k1sul1