getdave / grunt-deployments

MYSQL database deployments using GruntJS
MIT License
72 stars 34 forks source link

Absolute Paths in Widgets Breaks WP Functionality #65

Open korynorthrop opened 9 years ago

korynorthrop commented 9 years ago

This plug-in is working as expected until I place an absolute path in a Text Widget and run the db_push task. For example, if I have place an image in a text widget:

<img src="http://example.com/wp-content/uploads/test.jpg" alt="Test Image" />

or have a link to an internal page:

<a href="http://example.com/internal-page/">Internal Page</a>

the database will successfully push to the development target except none of the widget data from the local database will migrate over. If I change the paths to be relative:

<img src="/wp-content/uploads/test.jpg" alt="Test Image" />

<a href="/internal-page/">Internal Page</a>

everything will migrate over perfectly.