[wp-trac] [WordPress Trac] #18705: home_url() and is_home() with a static front page
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 14 21:31:01 UTC 2011
#18705: home_url() and is_home() with a static front page
-------------------------+------------------------------
Reporter: crrobi01 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by crrobi01):
Suppose you deprecate is_home() in favor of is_posts_page() and add
posts_page_url(). Now we have:
is_front_page()
is_posts_page()
home_url();
posts_page_url()
I'm suggesting we rename home_url() to front_page_url() because home_url()
doesn't point to the page that loads home.php when you have a static front
page. It points to front-page.php
Alternatively we could do:
is_front_page()
is_home()
front_page_url()
home_url()
Which is more consistent because the posts page template is called
home.php
To do this create a function called front_page_url() which works how
home_url() currently works and change the function of home_url() to how
our proposed function posts_page_url() would work.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18705#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list