-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug: Fixes issues for content replacement for the site and media URLs (…
…#2014) * Fix for #1986. Fixes various issues with content replacement callback and also updates tests to use WP 6.6 and 6.7 Fixes various issues with using content replacement for the site URL. * Fixed issues with PHPCS * Updated PR to replace srcset URL for different HTTP Protocols * Added changeset * Refactoring based off @whoami-pwd feedback. Reduced some of the nesting for cotent replacement. * Fixes for linting * Update plugins/faustwp/includes/replacement/callbacks.php Co-authored-by: Alex K. <[email protected]> * Added fixes as per code review from @whoami-pwd * Refactoring some of the image srcset replacement. * Small fix for PHPCS for a missing fullstop * Refactoring some of the media urls with @whoami-pwd * Fixes * Small refactor of parameters with @whoami-pwd --------- Co-authored-by: Alex K. <[email protected]>
- Loading branch information
1 parent
d57b88a
commit 33dda2e
Showing
7 changed files
with
395 additions
and
62 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,14 @@ | ||
--- | ||
'@faustwp/wordpress-plugin': minor | ||
--- | ||
|
||
### Fixes | ||
|
||
- Fixes various issues with content replacement callback functions and replacing the site_url and media_urls | ||
- Fixed an issue with content replacement when media replacement was disabled and rewrites enabled, it was overwriting and updating the media URL to the frontend URL rather than leaving it as the original site URL | ||
|
||
|
||
### Added | ||
|
||
- Added 6.6 and 6.7 to Github Actions | ||
- Added 2 new filters for `faustwp_get_wp_site_urls` and `faustwp_get_wp_site_media_urls` to allow users add/remove/edit site and media URLS for the content replacement. |
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
Oops, something went wrong.