home_url() and is_home() with a static front page
|Reported by:||crrobi01||Owned by:|
When you have a static front page, home_url() points to the front page while is_home() detects the posts page.
This is confusing and counter intuitive (especially because in the dashboard the page set as home is referred to as the posts page. The word "Home" is never used on the client side).
is_home() => is_posts_page()
home_url() => front_page_url()
Change History (10)
- Type changed from enhancement to defect (bug)