-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Send $product_name through woocommerce_cart_item_name filter once #38999
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
Send $product_name through woocommerce_cart_item_name filter once #38999
Conversation
|
Hi , Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
rrennick
left a comment
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.
@helgatheviking Thanks for submitting this. I apologize for not catching that on the original PR.
|
✍🏼 Not something introduced by this PR, and so doesn't necessarily need to be changed here, but I think the |
|
@helgatheviking Thanks for the help with this. I made the last change to the PR ecause we are running a tight timeline to get it included in 7.9.0. |
barryhughes
left a comment
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.
Nice: if we can get the required checks passing, it should be good to merge.
|
Hi @helgatheviking, Thanks for your contribution 💯. I've taken the liberty of fixing the version in the filter docblock (as suggested by @barryhughes) and added On account of those changes, though, I'm asking for a review from @vedanshujain, so he can give the final approval. |
|
Hey gang, thanks for carrying this across the finish line! |
b8d9571 to
294f59f
Compare
…8999) * Send $product_name through woocommerce_cart_item_name filter only once. Closes #38744. * Replace additional product name filters, with already filtered variable. * add additional params to docblock of woocommerce_cart_item_name * bump template version to 7.9.0 * revert cart_item_name filter change in #37830 * Minor fixes * Bump template version --------- Co-authored-by: Ron Rennick <[email protected]> Co-authored-by: Jorge A. Torres <[email protected]>
* Send $product_name through woocommerce_cart_item_name filter once (#38999) * Send $product_name through woocommerce_cart_item_name filter only once. Closes #38744. * Replace additional product name filters, with already filtered variable. * add additional params to docblock of woocommerce_cart_item_name * bump template version to 7.9.0 * revert cart_item_name filter change in #37830 * Minor fixes * Bump template version --------- Co-authored-by: Ron Rennick <[email protected]> Co-authored-by: Jorge A. Torres <[email protected]> * Prep for cherry pick 38999 --------- Co-authored-by: Kathy <[email protected]> Co-authored-by: Ron Rennick <[email protected]> Co-authored-by: Jorge A. Torres <[email protected]> Co-authored-by: WooCommerce Bot <[email protected]>
Submission Review Guidelines:
Changes proposed in this Pull Request:
Echo out filtered product name instead of filtering it again
Closes #38744.
How to test the changes in this Pull Request:
Follow the repro steps in the original issue.
1- Add this snippet
2- Add an item to the cart.
3- Go to cart.
4- Without the patch
-testshould appear twice. With the patch,-testshould appear only once.Changelog entry
Significance
Type
Message
Eliminate woocommerce_cart_item_name filter running twice on cart.php template
Comment