Skip to content

Absolute Paths in Widgets Breaks WP Functionality #65

@korynorthrop

Description

@korynorthrop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions