-
Notifications
You must be signed in to change notification settings - Fork 194
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
fix: Shop url rendered double slash when using WPML on vendor registration form. #2291
fix: Shop url rendered double slash when using WPML on vendor registration form. #2291
Conversation
WalkthroughThe changes improve URL handling and output security in two template files by introducing and utilizing Changes
Assessment against linked issues
Poem
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- templates/account/update-customer-to-vendor.php (2 hunks)
Files skipped from review due to trivial changes (1)
- templates/account/update-customer-to-vendor.php
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- templates/account/update-customer-to-vendor.php (3 hunks)
- templates/global/seller-registration-form.php (2 hunks)
Additional comments not posted (4)
templates/account/update-customer-to-vendor.php (2)
17-18
: LGTM! URL variables initialized correctly.The
$home_url
and$custom_store_url
variables are initialized appropriately usinguntrailingslashit( home_url() )
anddokan_get_option( 'custom_store_url', 'dokan_general', 'store' )
respectively.
44-47
: LGTM! URLs concatenated securely.The URLs within the
<small>
tag are concatenated usingesc_url
, which is a best practice for security.templates/global/seller-registration-form.php (2)
8-9
: LGTM! URL variables initialized correctly.The
$home_url
and$custom_store_url
variables are initialized appropriately usinguntrailingslashit( home_url() )
anddokan_get_option( 'custom_store_url', 'dokan_general', 'store' )
respectively.
35-38
: LGTM! URLs concatenated securely.The URLs within the
<small>
tag are concatenated usingesc_url
, which is a best practice for security.
@shashwatahalder01 Brother, kindly let me know if any inconsistencies found. |
@shashwatahalder01 @MdAsifHossainNadim does not work, please review test here: getdokan/dokan-wpml#59 (comment) |
All Submissions:
Changes proposed in this Pull Request:
Related Pull Request(s)
Closes
How to test the changes in this Pull Request:
Changelog entry
Fix: Shop URL rendered double slash when using WPML on vendor registration.
Detailed Description of the pull request. What was previous behaviour
and what will be changed in this PR.
Before Changes
Go throw the issue details: Link
After Changes
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
New Features
Improvements
esc_url
for URL concatenation.printf
instead ofecho
for displaying links.