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:
parent
d2ca866b26
commit
bc1f0699c2
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue