[wp-trac] [WordPress Trac] #18705: home_url() and is_home() with a static front page

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 27 15:26:20 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 johnbillion):

 Replying to [comment:2 alex-ye]:
 > 1+ for posts_page_url() , but I don't think we need front_page_url()
 it's the same as home_url() ?
 I'm not bothered either way. The idea is to remove the inconsistency
 between `is_home()`, which is true for the '''posts''' page, and
 `home_url()`, which gives you the '''front''' page URL. It should be
 sufficient to deprecate `is_home()` in favour of `is_posts_page()`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18705#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list