Skip to content

Commit

Permalink
Fix admin bar menu to show for home page latest posts as expected.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Sep 26, 2019
1 parent 3e9c6ef commit e2992a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
}
Expand Down

0 comments on commit e2992a0

Please sign in to comment.