From bc1f0699c205a7ac5026ffc13e1f0a71de4d2cff Mon Sep 17 00:00:00 2001 From: Fernando Date: Fri, 29 Jan 2021 09:44:38 -0300 Subject: [PATCH] Replaced method `woocommerce_get_page_id` with `wc_get_page_id` (https://github.com/woocommerce/woocommerce-admin/pull/6222) This commit replaces method `woocommerce_get_page_id` with `wc_get_page_id` in Loader.php Co-authored-by: Fernando Marichal --- plugins/woocommerce-admin/src/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/src/Loader.php b/plugins/woocommerce-admin/src/Loader.php index 368a277c493..2462b368c0a 100644 --- a/plugins/woocommerce-admin/src/Loader.php +++ b/plugins/woocommerce-admin/src/Loader.php @@ -1099,7 +1099,7 @@ class Loader { $settings['wcAdminAssetUrl'] = plugins_url( 'images/', dirname( __DIR__ ) . '/woocommerce-admin.php' ); $settings['wcVersion'] = WC_VERSION; $settings['siteUrl'] = site_url(); - $settings['shopUrl'] = get_permalink( woocommerce_get_page_id( 'shop' ) ); + $settings['shopUrl'] = get_permalink( wc_get_page_id( 'shop' ) ); $settings['dateFormat'] = get_option( 'date_format' ); $settings['plugins'] = array( 'installedPlugins' => PluginsHelper::get_installed_plugin_slugs(),