Fix typo (wc-template-functions.php) (#50147)

* Update wc-template-functions.php

* Add changefile(s) from automation for the following project(s): woocommerce

* Update plugins/woocommerce/includes/wc-template-functions.php

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Naman Malhotra <naman03malhotra@gmail.com>
This commit is contained in:
DAnn2012 2024-08-20 18:29:42 +02:00 committed by GitHub
parent 771fd00e5d
commit d2e9e982ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Comment: Fix typo (wc-template-functions.php)

View File

@ -240,8 +240,8 @@ function wc_set_loop_prop( $prop, $value = '' ) {
* Set the current visbility for a product in the woocommerce_loop global.
*
* @since 4.4.0
* @param int $product_id Product it to cache visbiility for.
* @param bool $value The poduct visibility value to cache.
* @param int $product_id Product it to cache visibility for.
* @param bool $value The product visibility value to cache.
*/
function wc_set_loop_product_visibility( $product_id, $value ) {
wc_set_loop_prop( "product_visibility_$product_id", $value );