-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MERL-1228: Fix issue with rewriting links to front end (#1624)
* test: confirm content replacement behavior with a mixed content blob * test: confirm unrelated URLs are untouched * chore: add `use_wp_domain_for_post_and_category_urls()` function. Determines if post and category URLs should link to the WP site. * chore: add `use_wp_domain_for_media()` function. Determines if WP media URLs should link to the WP site. * chore: remove callback attached to `graphql_request_results` filter * chore: use new `use_wp_domain_for_post_and_category_urls()` function inside `domain_replacement_enabled()` * fix: adjust content replacement logic to avoid rewriting media links incorrectly * filter block content via `wpgraphql_content_blocks_resolver_content` * refactor: Adjust logic in `image_source_srcset_replacement` * chore: add changeset
- Loading branch information
Showing
7 changed files
with
121 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@faustwp/wordpress-plugin': patch | ||
--- | ||
|
||
Fixed a bug that caused links to files in wp-content to be rewritten to the Faust Front-end site URL when they should not have been. |
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
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