Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements to the plugin, improving its flexibility and usability.
Changes Include:
The
rewritePaths
function in theHelpers
class now supports all taxonomies associated with a post, not just categories. This makes the plugin more flexible and compatible with a wider range of Wordpress setups.We've added an additional placeholder
%author_username%
for usage in revalidation paths, allowing inclusion of the post author's username.Improved support for paths with multiple placeholders of the same or different types. This ensures that all placeholders in a path are correctly replaced, not just the first occurrence of each type.
The user interface in the Settings has been updated to guide users about using taxonomy names, including 'category', 'post_tag', or any custom taxonomy.
These enhancements greatly increase the plugin's flexibility and its ability to handle a variety of Wordpress configurations and setups. Importantly, the changes are backward compatible, ensuring that the plugin continues to work as expected for users who do not wish to utilize these new features.
Testing
The changes have been tested and verified in a Wordpress environment. For ensuring maximum compatibility, it is recommended to perform further testing in various setups.