Home Link uses site_url() and could cause issues for sites using a different URL
-
site_url() would work well for sites that use the same URL for both WordPress and the site, for any other site this causes issues. Please use home_url() instead.
For your convenience,
@@ -298,7 +298,7 @@ final class HAG_Crumb {
$crumbs[] = new HAG_Crumb(
$options,
$front->post_title,
– site_url(),
+ home_url(),
true,
$fp
);
@@ -306,7 +306,7 @@ final class HAG_Crumb {
$crumbs[] = new HAG_Crumb(
$options,
$options[‘home_label’],
– site_url(),
+ home_url(),
true,
$fp || ($bh && !$cbh)
);
- The topic ‘Home Link uses site_url() and could cause issues for sites using a different URL’ is closed to new replies.