Release/1.3.0 rc5#167
Conversation
…e current site in either http or https protocals
…ignored Now when the content scanner is run, it will ingore all links from th…
WalkthroughThis update introduces several changes across the project. The minimum required PHP version in the documentation was lowered from 8.0 to 7.4, and version numbers were incremented in multiple files to reflect a new release candidate. Composer development dependencies were updated to more recent versions. A new function was added to identify links belonging to the current site, and the content scanner was modified to exclude such links from processing. Corresponding unit tests were added to verify this exclusion logic. The translation template received extensive updates to user-facing strings for improved clarity and accuracy. No exported or public entity signatures were changed except for the addition of new test methods and a new utility function. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Changes proposed in this Pull Request
This pull request introduces several updates to the
Wayback Link Fixerplugin, including enhancements to functionality, dependency updates, and version adjustments. The most significant changes involve the addition of a new function to exclude links from the current site, updates to test cases to validate this functionality, and modifications to plugin metadata and dependencies.Functional Enhancements:
wpcomsp_wayback_link_fixer_is_current_site_linkinfunctions.phpto check if a URL belongs to the current site. This ensures links from the current site are excluded from processing.get_linksmethod inContent_Scanner.phpto exclude current site links from the list of scanned links.Testing Improvements:
test_exclude_links_from_current_siteinTest_Content_Scanner.phpto verify that links from the current site are excluded. Included a data provider to test various scenarios for site links.Dependency Updates:
composer.jsondependencies, including bumping versions forwp-cli/i18n-command,php-stubs/wordpress-stubs,roots/wordpress, andwp-phpunit/wp-phpunitto align with the latest releases.Metadata Adjustments:
1.3.0-RC5inpackage.jsonandwayback-link-fixer.php. [1] [2] [3]README.mdto reflect updated PHP requirements (from 8.0 to 7.4) and changed terminology fromBITROTtoLINKROT. [1] [2]Testing instructions
Mentions #
Summary by CodeRabbit