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 <contacto@fernandomarichal.com>
This commit is contained in:
Fernando 2021-01-29 09:44:38 -03:00 committed by GitHub
parent d2ca866b26
commit bc1f0699c2
1 changed files with 1 additions and 1 deletions

View File

@ -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(),