test for wp_privacy_exports_url - #5551
Conversation
This comment was marked as spam.
This comment was marked as spam.
Co-authored-by: John Parris <public@johnparris.com>
Co-authored-by: John Parris <public@johnparris.com>
Co-authored-by: John Parris <public@johnparris.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @pbearne@git.wordpress.org. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
…ic URL generation
…to 59709_wp_privacy_exports_url
There was a problem hiding this comment.
Pull request overview
Adds PHPUnit coverage for wp_privacy_exports_url() (Trac #59709), ensuring the exports directory URL is generated correctly and can be overridden via the corresponding filter.
Changes:
- Introduces a new PHPUnit test file for
wp_privacy_exports_url(). - Adds a test for the default URL construction and a test verifying the
wp_privacy_exports_urlfilter behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mindctrl
left a comment
There was a problem hiding this comment.
Looks good overall. The remaining Copilot suggestions make sense.
|
Hi @pbearne, do you have the bandwidth to address the Copilot reviews? |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
done |
The `@group` annotation should reference the `functions` group rather than `functions.php`.
Filters added with `add_filter()` are already removed by the base test case's `tear_down()`, so the override is unnecessary.
The callback previously ignored its argument, so the value passed to the `wp_privacy_exports_url` filter was never verified. Deriving the return value from `$exports_url` closes that gap.
This adds coverage for the personal data exports directory URL, verifying both the default location under the uploads directory and that the filter of the same name can override it. Developed in: #5551 Follow-up to [63025]. Props desrosj, masteradhoc, mindctrl, pbearne, wildworks. Fixes #59709. git-svn-id: https://develop.svn.wordpress.org/trunk@63028 602fd350-edb4-49c9-b593-d223f7449a82
This adds coverage for the personal data exports directory URL, verifying both the default location under the uploads directory and that the filter of the same name can override it. Developed in: WordPress/wordpress-develop#5551 Follow-up to [63025]. Props desrosj, masteradhoc, mindctrl, pbearne, wildworks. Fixes #59709. Built from https://develop.svn.wordpress.org/trunk@63028 git-svn-id: http://core.svn.wordpress.org/trunk@62247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Trac ticket: https://core.trac.wordpress.org/ticket/59709