From e2992a029feea769fbf7ffadbcfec4e2e370d199 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Thu, 26 Sep 2019 11:42:19 +0200 Subject: [PATCH] Fix admin bar menu to show for home page latest posts as expected. --- includes/Context.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Context.php b/includes/Context.php index eda1892dc2b..e0deb20504c 100644 --- a/includes/Context.php +++ b/includes/Context.php @@ -211,7 +211,7 @@ public function get_reference_canonical() { // Handle the home page URL. if ( is_front_page() ) { - return $this->get_reference_site_url(); + return user_trailingslashit( $this->get_reference_site_url() ); } elseif ( is_home() ) { return $this->get_reference_permalink( get_option( 'page_for_posts' ) ); }