Fix typo in wc_get_product_id_by_global_unique_id (#50702)

This commit is contained in:
Nathan Silveira 2024-08-15 10:14:33 -03:00 committed by GitHub
parent c07b7b8e9f
commit 1235f4d38a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Fix typo in wc_get_product_id_by_global_unique_id

View File

@ -747,7 +747,7 @@ function wc_get_product_id_by_sku( $sku ) {
*/
function wc_get_product_id_by_global_unique_id( $global_unique_id ) {
$data_store = WC_Data_Store::load( 'product' );
if ( $data_store->has_callable( 'get_product_id_by_global_unique_idz' ) ) {
if ( $data_store->has_callable( 'get_product_id_by_global_unique_id' ) ) {
return $data_store->get_product_id_by_global_unique_id( $global_unique_id );
} else {
$logger = wc_get_logger();