Change `siteUrl` to `homeUrl` on navigation site title (https://github.com/woocommerce/woocommerce-admin/pull/6240)

* Get home url

* Change siteUrl to homeUrl
This commit is contained in:
Hsing-Yu Flowers 2021-02-10 17:03:47 -05:00 committed by GitHub
parent 8c9235096c
commit d61cb9faf3
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ import { addHistoryListener } from '../../utils';
const Header = () => {
const siteTitle = getSetting( 'siteTitle', '' );
const siteUrl = getSetting( 'siteUrl', '' );
const homeUrl = getSetting( 'homeUrl', '' );
const isScrolled = useIsScrolled();
const [ isFolded, setIsFolded ] = useState(
document.body.classList.contains( false )
@ -117,7 +117,7 @@ const Header = () => {
{ buttonIcon }
</Button>
<Button
href={ siteUrl }
href={ homeUrl }
className="woocommerce-navigation-header__site-title"
as="span"
>

View File

@ -1102,6 +1102,7 @@ class Loader {
$settings['wcVersion'] = WC_VERSION;
$settings['siteUrl'] = site_url();
$settings['shopUrl'] = get_permalink( wc_get_page_id( 'shop' ) );
$settings['homeUrl'] = home_url();
$settings['dateFormat'] = get_option( 'date_format' );
$settings['plugins'] = array(
'installedPlugins' => PluginsHelper::get_installed_plugin_slugs(),