[wp-trac] [WordPress Trac] #18705: home_url() and is_home() with a static front page
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 19 16:16:25 UTC 2011
#18705: home_url() and is_home() with a static front page
--------------------------+-----------------------------
Reporter: crrobi01 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
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).
Rename
is_home() => is_posts_page()
home_url() => front_page_url()
Add
posts_page_url()
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18705>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list