use admin_url to generate manage suggestions url (support multisite etc)
This commit is contained in:
parent
cd9101bb58
commit
7ede25add7
|
@ -183,7 +183,7 @@
|
||||||
manageSuggestionsLink.classList.add( 'marketplace-suggestion-manage-link', 'linkout' );
|
manageSuggestionsLink.classList.add( 'marketplace-suggestion-manage-link', 'linkout' );
|
||||||
manageSuggestionsLink.setAttribute(
|
manageSuggestionsLink.setAttribute(
|
||||||
'href',
|
'href',
|
||||||
'/wp-admin/admin.php?page=wc-settings&tab=advanced§ion=woocommerce_com'
|
marketplace_suggestions.manage_suggestions_url
|
||||||
);
|
);
|
||||||
manageSuggestionsLink.textContent = marketplace_suggestions.i18n_marketplace_suggestions_manage_suggestions;
|
manageSuggestionsLink.textContent = marketplace_suggestions.i18n_marketplace_suggestions_manage_suggestions;
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -442,6 +442,7 @@ if ( ! class_exists( 'WC_Admin_Assets', false ) ) :
|
||||||
'active_plugins' => $active_plugin_slugs,
|
'active_plugins' => $active_plugin_slugs,
|
||||||
'dismissed_suggestions' => WC_Marketplace_Suggestions::get_dismissed_suggestions(),
|
'dismissed_suggestions' => WC_Marketplace_Suggestions::get_dismissed_suggestions(),
|
||||||
'suggestions_data' => WC_Marketplace_Suggestions::get_suggestions_api_data(),
|
'suggestions_data' => WC_Marketplace_Suggestions::get_suggestions_api_data(),
|
||||||
|
'manage_suggestions_url' => admin_url( 'admin.php?page=wc-settings&tab=advanced§ion=woocommerce_com' ),
|
||||||
'i18n_marketplace_suggestions_default_cta'
|
'i18n_marketplace_suggestions_default_cta'
|
||||||
=> esc_html__( 'Learn More', 'woocommerce' ),
|
=> esc_html__( 'Learn More', 'woocommerce' ),
|
||||||
'i18n_marketplace_suggestions_dismiss_tooltip'
|
'i18n_marketplace_suggestions_dismiss_tooltip'
|
||||||
|
|
Loading…
Reference in New Issue