-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dead code #2540
Remove dead code #2540
Conversation
WalkthroughThe pull request involves modifications to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
14fd4bd
to
ea747ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your Pull Request.
By default, emails sent from WooCommerce utilize the Reply-to:
header with the default value specified in the Email sender options section of WooCommerce's email settings (get_option( 'woocommerce_email_from_address' );
).
To improve email responsiveness, we've modified the get_from_address()
method within the relevant email classes. This adjustment ensures that the Reply-to: header for ContactSeller
and VendorProductReview
emails is set to the admin's email address.
This change aims to facilitate easier communication between the admin and vendors, as it is anticipated that the admin may require a response to these types of emails.
Please don't hesitate to suggest an alternative approach to this use case.
References
Ok, so it's not dead code, it's a behavior change request. In my case, We also have a custom email sender that forces [email protected] for when [email protected] leaks in the form field. We had to force this because of the line of code I proposed removing. The problem for us is that [email protected] is an email that only our team internally has access to, it's technically a Gmail address, and we have Gmail filter rules for it. For our user interaction, we are using Zendesk. We don't want those people to reply to our emails, it would break the normal flow of communications (we are trying to move away from email altogether so an AI chat can do a first filter pass, it's painful to do this with email). |
Closing for now. Feel free to move forward the way you see fit. |
All Submissions:
Changes proposed in this Pull Request:
There are a number of use of extensions of the
WC_Email
class in the codebase: https://github.com/search?q=repo%3Agetdokan%2Fdokan%20extends%20WC_Email%20%7B&type=code. The majority of them don't override the defaultget_from_address()
method. It seems that this logic is dead code.Related Pull Request(s)
Closes
How to test the changes in this Pull Request:
Changelog entry
Title
Detailed Description of the pull request. What was previous behaviour
and what will be changed in this PR.
Before Changes
Describe the issue before changes with screenshots(s).
After Changes
Describe the issue after changes with screenshot(s).
Feature Video (optional)
Link of detailed video if this PR is for a feature.
PR Self Review Checklist:
FOR PR REVIEWER ONLY:
Summary by CodeRabbit