-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use
the_content
filter to replace broken urls in post content
- Loading branch information
1 parent
d779759
commit 94d69f1
Showing
9 changed files
with
173 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
.../data/replace-urls-content/different-assets-and-site-domain/replaces-with-assets-url.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<img src="https://foo.com/content_dir/plugins/plugin_name/img.png" /> | ||
<img src='https://foo.com/content_dir/plugins/plugin_name/img.png' /> | ||
--EXPECTED-- | ||
<img src="https://assets.com/assets/uuid/content_dir/plugins/plugin_name/img.png" /> | ||
<img src='https://assets.com/assets/uuid/content_dir/plugins/plugin_name/img.png' /> |
5 changes: 5 additions & 0 deletions
5
...data/replace-urls-content/different-assets-and-site-domain/replaces-with-uploads-url.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<img src="https://foo.com/content_dir/uploads/year/month/day/img.png" /> | ||
<img src='https://foo.com/content_dir/uploads/year/month/day/img.png' /> | ||
--EXPECTED-- | ||
<img src="https://assets.com/uploads/year/month/day/img.png" /> | ||
<img src='https://assets.com/uploads/year/month/day/img.png' /> |
9 changes: 9 additions & 0 deletions
9
...riber/data/replace-urls-content/different-assets-and-site-domain/updates-assets-urls.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<img src="https://foo.com/assets/old-uuid/content_dir/plugins/plugin_name/img.png" /> | ||
<img src="https://assets.com/assets/old-uuid/content_dir/plugins/plugin_name/img.png" /> | ||
<img src='https://foo.com/assets/old-uuid/content_dir/plugins/plugin_name/img.png' /> | ||
<img src='https://assets.com/assets/old-uuid/content_dir/plugins/plugin_name/img.png' /> | ||
--EXPECTED-- | ||
<img src="https://foo.com/assets/old-uuid/content_dir/plugins/plugin_name/img.png" /> | ||
<img src="https://assets.com/assets/uuid/content_dir/plugins/plugin_name/img.png" /> | ||
<img src='https://foo.com/assets/old-uuid/content_dir/plugins/plugin_name/img.png' /> | ||
<img src='https://assets.com/assets/uuid/content_dir/plugins/plugin_name/img.png' /> |
5 changes: 5 additions & 0 deletions
5
...riber/data/replace-urls-content/same-assets-and-site-domain/replaces-with-assets-url.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<img src="https://foo.com/content_dir/plugins/plugin_name/img.png" /> | ||
<img src='https://foo.com/content_dir/plugins/plugin_name/img.png' /> | ||
--EXPECTED-- | ||
<img src="https://foo.com/assets/uuid/content_dir/plugins/plugin_name/img.png" /> | ||
<img src='https://foo.com/assets/uuid/content_dir/plugins/plugin_name/img.png' /> |
5 changes: 5 additions & 0 deletions
5
...iber/data/replace-urls-content/same-assets-and-site-domain/replaces-with-uploads-url.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<img src="https://foo.com/content_dir/uploads/year/month/day/img.png" /> | ||
<img src='https://foo.com/content_dir/uploads/year/month/day/img.png' /> | ||
--EXPECTED-- | ||
<img src="https://foo.com/uploads/year/month/day/img.png" /> | ||
<img src='https://foo.com/uploads/year/month/day/img.png' /> |
5 changes: 5 additions & 0 deletions
5
...Subscriber/data/replace-urls-content/same-assets-and-site-domain/updates-assets-urls.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<img src="https://foo.com/assets/old-uuid/content_dir/plugins/plugin_name/img.png" /> | ||
<img src='https://foo.com/assets/old-uuid/content_dir/plugins/plugin_name/img.png' /> | ||
--EXPECTED-- | ||
<img src="https://foo.com/assets/uuid/content_dir/plugins/plugin_name/img.png" /> | ||
<img src='https://foo.com/assets/uuid/content_dir/plugins/plugin_name/img.png' /> |