-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Fix an issue when a product is not an object #60215
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 @mikejolley , 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:
|
📝 WalkthroughWalkthroughA changelog entry was added for the WooCommerce plugin to document a patch-level fix addressing an issue where a product variable was not recognized as an object in the HTML order item context. The related PHP template was updated to ensure safe method calls on the product variable, preventing potential errors. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (23)
✨ Finishing Touches
🧪 Generate unit tests
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. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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. |
plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php
Outdated
Show resolved
Hide resolved
…-item.php Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com>
To reproduce:
|
* Fix an issue when a product is not an object * Update plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com> --------- Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com>
IMPORTANT: Merging this PR to the appropriate branches is critical to the release process and ensures that the bug does not cause regressions in the future releases. Cherry picking was successful for |
…ct (#60252) Fix an issue when a product is not an object (#60215) * Fix an issue when a product is not an object * Update plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php --------- Co-authored-by: Boro Sitnikovski <buritomath@gmail.com> Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com>
Our bots reported:
Changes proposed in this Pull Request:
Use
$product
when it really exists, as done in other places in the same file.How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Testing that has already taken place:
Changelog entry
Changelog Entry Details
Significance
Type
Message
Changelog Entry Comment
Comment