-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Interactivity API powered MiniCart - Fix buttonAriaLabel
getter in PHP
#59779
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
Conversation
Testing GuidelinesHi @woocommerce/billow, Apart from reviewing the code changes, please make sure to review the testing instructions (Guide) and verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed. Reminder: PR reviewers are required to document testing performed. This includes:
|
📝 WalkthroughWalkthroughThis change updates the MiniCart PHP code in the WooCommerce plugin, specifically fixing the variable capture in the anonymous function for the Changes
Possibly related PRs
📜 Recent review detailsConfiguration used: .coderabbit.yml 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.{php,js,ts,jsx,tsx}Instructions used from: Sources: 🧠 Learnings (3)📓 Common learnings
plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php (7)
plugins/woocommerce/changelog/59779-fix-iapi-minicart-aria-label-getter (7)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page 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
Documentation and Community
|
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.
LGTM!
Closing/reopening to retrigger CI (it was frozen). |
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. Test this pull request with WordPress Playground. Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit. |
Submission Review Guidelines:
Changes proposed in this Pull Request:
Fixes an issue in the
state.buttonAriaLabel
getter inside thewoocommerce/mini-cart
iAPI store.The closure was using the variable
$button_aria_label_template
, which was outside of the function scope. This fix simply adds the variable to the scope.(For Bug Fixes) Bug introduced in PR #59636.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Changelog entry
Changelog Entry Details
Significance
Type
Message
Fix an issue in the
buttonAriaLabel
PHP getter in thewoocommerce/mini-cart
iAPI initial state.Changelog Entry Comment
Comment