[wp-trac] Re: [WordPress Trac] #3682: is_home() returns FALSE when
using a static page as your front page
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 24 19:41:49 GMT 2007
#3682: is_home() returns FALSE when using a static page as your front page
--------------------------------------+-------------------------------------
Reporter: johnbillion | Owner: anonymous
Type: defect | Status: reopened
Priority: high | Milestone: 2.3
Component: Template | Version: 2.1
Severity: normal | Resolution:
Keywords: dev-feedback 2nd-opinion |
--------------------------------------+-------------------------------------
Comment (by Otto42):
I disagree with Andy and other people here: I think is_home() should be
the blog, wherever it is.
So, in order to achieve consensus, I suggest the following:
* Leave is_home() as it is now, to avoid breaking everything.
* Deprecate is_home() for the next several versions.
* Create is_frontpage() and is_blogpage(). Uses of these should be
obvious.
The reasoning behind my suggestion is simple: "is_home" is semantically
uncertain anyway, as this very discussion shows. It's not obvious what it
should be pointing to. The fact that you can flip-flop on it and see it
both ways proves this. So let's leave it as it is but deprecate it, and
introduce replacements which are a lot more obvious.
--
Ticket URL: <http://trac.wordpress.org/ticket/3682#comment:26>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list