Fix typo in wc_get_product_id_by_global_unique_id (#50702)
This commit is contained in:
parent
c07b7b8e9f
commit
1235f4d38a
|
@ -0,0 +1,5 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
Comment: Fix typo in wc_get_product_id_by_global_unique_id
|
||||||
|
|
||||||
|
|
|
@ -747,7 +747,7 @@ function wc_get_product_id_by_sku( $sku ) {
|
||||||
*/
|
*/
|
||||||
function wc_get_product_id_by_global_unique_id( $global_unique_id ) {
|
function wc_get_product_id_by_global_unique_id( $global_unique_id ) {
|
||||||
$data_store = WC_Data_Store::load( 'product' );
|
$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 );
|
return $data_store->get_product_id_by_global_unique_id( $global_unique_id );
|
||||||
} else {
|
} else {
|
||||||
$logger = wc_get_logger();
|
$logger = wc_get_logger();
|
||||||
|
|
Loading…
Reference in New Issue